CN110581855B - Application control method and device, electronic equipment and computer readable storage medium - Google Patents

Application control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110581855B
CN110581855B CN201910868372.9A CN201910868372A CN110581855B CN 110581855 B CN110581855 B CN 110581855B CN 201910868372 A CN201910868372 A CN 201910868372A CN 110581855 B CN110581855 B CN 110581855B
Authority
CN
China
Prior art keywords
server
access
parameter
target application
health check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910868372.9A
Other languages
Chinese (zh)
Other versions
CN110581855A (en
Inventor
杨旻
胡佳
袁振青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910868372.9A priority Critical patent/CN110581855B/en
Publication of CN110581855A publication Critical patent/CN110581855A/en
Application granted granted Critical
Publication of CN110581855B publication Critical patent/CN110581855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The utility model provides an application control method executed by load balancing equipment, which comprises the steps that before a target application provides service for a user, a health check request is sent to a server by accessing a service port of the server where the target application is located; judging whether a health check result from the server is received or not; and in response to receiving the health check result from the server, and in the case that the health check result indicates that the server is in a normal state, controlling to open a control port of the server so that the target application can provide the service to the user. The present disclosure also provides another application control method, an application control apparatus executed by a load balancing device, an application control apparatus, an electronic device, and a computer-readable storage medium.

Description

Application control method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application control method executed by a load balancing device, an application control method, an application control apparatus executed by a load balancing device, an application control apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of computer technology, various application programs come into endless. Due to the fact that application environments and functions to be achieved are more and more complex, version upgrading needs to be conducted on various application programs, and in order to avoid response errors of the application programs during production, service verification needs to be conducted on the application programs before production. At present, the requirements of continuity of system service, safety of service and sensitivity are higher. Thus, the inventors found that: how to keep the stability of the service after the past versions are put into production and changed is particularly critical and important.
Disclosure of Invention
In view of the above, the present disclosure provides an application control method performed by a load balancing device, an application control method, an application control apparatus performed by a load balancing device, an application control apparatus, an electronic device, and a computer-readable storage medium.
One aspect of the present disclosure provides an application control method performed by a load balancing apparatus, including: before a target application provides service for a user, a health check request is sent to a server by accessing a service port of the server where the target application is located; judging whether a health check result from the server is received or not; and controlling to open a control port of the server so that the target application can provide services for a user in response to the condition that the health check result from the server is received and the health check result indicates that the server is in a normal state.
According to an embodiment of the present disclosure, the method further includes: and in response to not receiving the health check result from the server, maintaining the control port of the server in a closed state, and distributing an access request for requesting access to the target application to other servers except the server of which the control port is in the closed state.
According to an embodiment of the present disclosure, the method further includes: responding to the health check result which is not received from the server, and acquiring the network address of the server; and positioning the server according to the network address of the server.
Another aspect of the present disclosure provides an application control method, including: deploying a detection page of the target application in a server where the target application is located; setting access parameters of the detection page in a parameter table of a database, wherein the access parameters comprise an access permission parameter and an access prohibition parameter; before the target application provides service for the user, sending a health check request to the server; judging whether a health check result from the server is received or not; and distributing an access request for requesting to access the target application to the server in response to receiving the health check result from the server, wherein the health check result represents that the server is in a normal state and the access parameter of the probe page is an access-allowed parameter.
According to an embodiment of the present disclosure, the method further includes: and under the condition that the server is prohibited from responding to the access request for requesting to access the target application, modifying the access parameter of the detection page in the parameter table of the database into a prohibited access parameter.
Another aspect of the present disclosure provides an application control apparatus executed by a load balancing device, including: the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a health check request to a server by accessing a service port of the server where a target application is located before the target application provides service for a user; the first judging module is used for judging whether the health examination result from the server is received or not; and the control module is used for controlling to open a control port of the server in response to receiving the health check result from the server and the health check result indicates that the server is in a normal state, so that the target application can provide services for a user.
According to an embodiment of the present disclosure, the apparatus further includes: and a first distribution module, configured to maintain the control port of the server in a closed state in response to not receiving the health check result from the server, and distribute an access request for requesting access to the target application to a server other than the server whose control port is in the closed state.
According to an embodiment of the present disclosure, the apparatus further includes: an obtaining module, configured to obtain a network address of the server in response to not receiving a health check result from the server; and the positioning module is used for positioning the server according to the network address of the server.
Another aspect of the present disclosure provides an application control apparatus including: the deployment module is used for deploying the detection page of the target application in a server where the target application is located; the setting module is used for setting the access parameters of the detection page in a parameter table of a database, wherein the access parameters comprise an access permission parameter and an access prohibition parameter; a second sending module, configured to send a health check request to the server before the target application provides a service to a user; the second judging module is used for judging whether the health examination result from the server is received or not; and a second allocating module, configured to allocate, in response to receiving a health check result from the server, an access request for requesting access to the target application to the server when the health check result indicates that the server is in a normal state and the access parameter of the probe page is an access-allowed parameter.
According to an embodiment of the present disclosure, the apparatus further includes a modification module, configured to modify an access parameter of the probe page in the parameter table of the database to be an access prohibited parameter when the server is prohibited from responding to an access request for requesting access to the target application.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the above-described method when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method described above when executed.
According to the embodiment of the disclosure, before the target application provides services for the external user, the load balancing device performs health check on the server where the target application is located, and the server is controlled to be served by the external service by opening or closing the control port under the condition that the health check result represents that the server is in a normal state. The application control method provided by the disclosure is simple and controllable, achieves advanced verification, rapid fault isolation and diagnosis in the service, reduces the application updating risk, and effectively improves the customer service quality and the application operation and maintenance maturity. The problem that before the application program serves externally, internal technology and service verification are carried out on the updated function in advance so as to discover and control the application program to be updated in advance is solved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an exemplary system architecture to which the application control method and apparatus performed by a load balancing device may be applied, according to an embodiment of the present disclosure;
fig. 2 schematically shows a flow chart of an application control method performed by a load balancing device according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram for locating a failed server according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of an application control method according to another embodiment of the present disclosure;
FIG. 5 schematically shows an architecture diagram of an application control method according to another embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an application control arrangement executed by a load balancing device according to an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of an application control arrangement executed by a load balancing device according to another embodiment of the present disclosure; and
FIG. 8 schematically illustrates a block diagram of a computer system suitable for implementing the methods described in the present disclosure, in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides an application control method executed by load balancing equipment, which comprises the steps of sending a health check request to a server by accessing a service port of the server where a target application is located before the target application provides service to a user; judging whether a health check result from the server is received or not; and in response to receiving the health check result from the server, and in the case that the health check result indicates that the server is in a normal state, controlling to open a control port of the server so that the target application can provide the service to the user. The present disclosure also provides another application control method, an application control apparatus executed by a load balancing device, an application control apparatus, an electronic device, and a computer-readable storage medium.
Fig. 1 schematically illustrates an exemplary system architecture to which the application control method and apparatus performed by the load balancing device may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include a load balancing device 110, a server cluster 120, and a terminal device 130. Server cluster 120 may include servers 121, 122, and 123. The medium over which communication links may be provided between the load balancing device 110, the server cluster 120, and the end devices 130 may include various connection types, such as wired and/or wireless communication links, and so forth.
Internal services and technicians may use the terminal device 130 to interact with the servers in the server cluster 120 over a network to receive or send messages, etc. Various messaging client applications, such as banking applications, web browser applications, search-type applications, instant messaging tools, mailbox clients, and/or social platform software, etc. (by way of example only) may be installed on terminal device 130.
After the latest version of the target application is put into production or changed, internal business and technicians can verify and experience whether the new business function has problems or not in advance and whether an optimization space exists or not, and after the verification is passed, an application party can serve the external service.
The terminal device 130 may be a variety of electronic devices having a display screen including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The load balancing device 110 may be used to manage and control the access requests of the clients, and may distribute the access requests of the clients to different servers for processing.
The load balancing device 110 may be configured with a health check mechanism, which may periodically perform health check on the servers 121, 122, and 123 in the server cluster 120.
Servers 121, 122, and 123 may be servers that provide various services, such as a background management server (for example only) that provides support for websites browsed by users using terminal devices 130. The backend management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a web page, information, or data obtained or generated according to the user request) to the terminal device 130.
According to the embodiment of the disclosure, one or more control ports for health check can be added on the basis of checking the service port of the server where the target application is located by using the health check mechanism of the load balancing device, and the load balancing device judges whether to distribute a request to the server according to the starting condition of the newly added control port, so that the purposes of judging whether the application autonomously controls the service, rapidly isolating and diagnosing faults, analyzing and positioning problems, improving the operation and maintenance level, performing internal verification in advance and the like are achieved.
It should be noted that the application control method executed by the load balancing device according to the embodiment of the present disclosure may be generally executed by the load balancing device 110. Accordingly, the application control apparatus executed by the load balancing device provided by the embodiment of the present disclosure may be generally disposed in the load balancing device 110.
It should be understood that the number of end devices, load balancing devices, and servers in fig. 1 are merely illustrative. There may be any number of terminal devices, load balancing devices, and servers, as desired for implementation.
Fig. 2 schematically shows a flowchart of an application control method performed by a load balancing device according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S203.
In operation S201, before the target application provides a service to the user, a health check request is transmitted to the server by accessing a service port of the server where the target application is located.
According to the embodiment of the disclosure, after the new version of the target application is put into production or changed, internal business and technicians can verify and experience whether the new business function has a problem or not in advance and whether an optimization space exists or not, and after the verification is passed, the target application can be served externally. The method for verifying and experiencing the new service function in advance by the internal service and the technician may be to open a service port of the server where the target application is located, and send a health check request to the server by accessing the service port, but not start a control port of the server where the target application is located.
In operation S202, it is determined whether a health check result is received from the server.
According to the embodiment of the disclosure, if the server is in a failure state, the health check result will not be sent to the load balancing device. The target application will not be served outside at this time.
For example, during daily operation, a certain server suddenly fails, and cannot provide external services normally, but the cause of the problem is unknown, and the machine service does not need to be shut down for problem diagnosis and analysis. At this time, the control port of the server can be stopped, and the purpose of quickly isolating and diagnosing faults is achieved.
According to the embodiment of the disclosure, in response to not receiving the health check result from the server, the control port of the server is maintained in the closed state, and the access request for requesting access to the target application is distributed to the other servers except the server whose control port is in the closed state.
In operation S203, in response to receiving the health check result from the server, and in a case that the health check result indicates that the server is in a normal state, controlling to open a control port of the server so that the target application can provide the service to the user.
According to the embodiment of the disclosure, if the version is put into production or changed for a certain time, and the internal business and the technical personnel verify the functions of the newly added business, the new service is allowed to be provided for the customers. At this time, the control port of the server where the target application is located can be started, the network health check is completely passed, and the service is external.
According to an embodiment of the present disclosure, a setting method of a control port of a server may include the following. Firstly, acquiring a configuration file of a server through a client; then, modifying the configuration file or customizing a control port; furthermore, the modified or customized configuration file is transmitted to the server.
According to the embodiment of the disclosure, before the target application provides services for the external user, the load balancing device performs health check on the server where the target application is located, and the server is controlled to be served by the external service by opening or closing the control port under the condition that the health check result represents that the server is in a normal state. The application control method provided by the disclosure is simple and controllable, achieves advanced verification, rapid fault isolation and diagnosis in the service, reduces the application updating risk, and effectively improves the customer service quality and the application operation and maintenance maturity. The problem that before the application program serves externally, internal technology and service verification are carried out on the updated function in advance so as to discover and control the application program to be updated in advance is solved.
The method of fig. 2 is further described with reference to fig. 3 in conjunction with specific embodiments.
Fig. 3 schematically shows a flow chart of locating a failed server according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S302.
In operation S301, in response to not receiving the health check result from the server, a network address of the server is acquired.
According to the embodiment of the present disclosure, the network address of the server providing the service to the outside may be stored in the load balancing device in advance, and if the server does not respond to the load balancing device, the load balancing device acquires the network address of the server that does not respond.
In operation S302, a server is located according to a network address of the server.
By the embodiment of the disclosure, a health check mechanism of the load balancing device can be utilized, and on the basis of keeping health check on the application service port, a health check strategy of the internal verification control port is added, the control port can be freely controlled by the application side, namely, under the condition that the application service port is started, the control port is started and stopped by the application side to control whether the application server is externally served. The strategy can be applied to various scenes such as daily change, emergency, operation and maintenance, the verification of internal technology and service is carried out in a mode of starting the service port and stopping the control port before the service is formally outward, and after the verification is finished, the control port is started to trigger the load balancing equipment to pass the health check and complete the formal service of the customer; when the server breaks down, the scheme can be utilized to quickly isolate and diagnose the fault, analyze and position the problem, and improve the operation and maintenance level.
Fig. 4 schematically shows a flow chart of an application control method according to another embodiment of the present disclosure.
As shown in fig. 4, the method includes operations S401 to S405.
In operation S401, a probe page of a target application is deployed in a server where the target application is located.
According to embodiments of the present disclosure, the probe page may be a program dedicated to health checks.
In operation S402, access parameters of the probe page are set in a parameter table of the database, wherein the access parameters include an allowed access parameter and a prohibited access parameter.
In operation S403, a health check request is transmitted to the server before the target application provides a service to the user.
In operation S404, it is determined whether a health check result is received from the server.
In operation S405, in response to receiving the health check result from the server, and the health check result characterizes that the server is in a normal state and the access parameter of the probe page is an allowed access parameter, an access request for requesting access to the target application is allocated to the server.
According to the embodiment of the disclosure, in the case that the server is prohibited from responding to the access request for requesting to access the target application, the access parameter of the detection page in the parameter table of the database is modified into the prohibited access parameter.
According to the embodiment of the disclosure, a page detection depth health check strategy of the load balancing equipment is utilized, corresponding detection pages are deployed on the server, access parameters of the detection pages are set in a parameter table of a database, and return parameters of the detection pages are different through real-time application parameter control adjustment, so that requests for the same server domain name are distributed to different functional programs of the server under different scenes, and the purposes of isolation and internal verification are achieved.
The method of fig. 4 is further described with reference to fig. 5 in conjunction with specific embodiments.
Fig. 5 schematically shows an architecture diagram of an application control method according to another embodiment of the present disclosure.
As shown in fig. 5, a client may request a service from load balancing device 521 or load balancing device 522 through client 510. The network address of the load balancing device 521 may be an IP address for external normal domain name resolution, and the load balancing device 522 may be a temporary IP address for internal tester-specific verification.
According to an embodiment of the present disclosure, the health check policies of load balancing device 521 and load balancing device 522 may be different.
According to the embodiment of the present disclosure, the health check policy of the load balancing device 521 may be to check the state of the server 530 and return the access parameter of the probe page from the parameter table of the database 540, and when the state of the server 530 is normal and the access parameter is allowed to be accessed, the client request may be normally accessed to the server 530 through the load balancing device 521. When the server 530 is in a failure state and/or the access parameter is access prohibited, the client cannot access the server 530 through the load balancing apparatus 521.
According to an embodiment of the present disclosure, the health check policy of the load balancing device 522 may be to check only the state of the server 530, and when the state of the server 530 is in an on state, the client request may normally access the server 530 through the load balancing device 522.
According to the embodiment of the present disclosure, when it is necessary to stop the external client from accessing the server 530 and only allow the internal authenticated user to access the server 530, the access parameter of the probe page in the parameter table of the database 540 may be modified to be the access prohibition parameter, and then the external client cannot access the server through the domain name load balancing device 521. According to the embodiment of the present disclosure, at this time, the internal authentication user may use the self-constructed agent to designate the access address as the temporary IP, that is, the load balancing device 522, and since the health check policy of the load balancing device 522 is to check only the state of the server 530, the internal authentication user may normally access the server 530.
Through the embodiment of the disclosure, the internal business is verified in advance, the fault isolation and diagnosis are rapid, the application updating risk is reduced, and the customer service quality and the application operation and maintenance maturity are effectively improved.
Fig. 6 schematically shows a block diagram of an application control apparatus executed by a load balancing device according to an embodiment of the present disclosure.
As shown in fig. 6, the application control apparatus 600 executed by the load balancing device includes a first sending module 610, a first judging module 620, and a control module 630.
The first sending module 610 is configured to send a health check request to a server by accessing a service port of the server where the target application is located before the target application provides a service to a user.
The first determining module 620 is used for determining whether a health check result is received from the server.
The control module 630 is configured to, in response to receiving the health check result from the server, control to open a control port of the server so that the target application can provide the service to the user when the health check result indicates that the server is in a normal state.
According to the embodiment of the disclosure, before the target application provides services for the external user, the load balancing device performs health check on the server where the target application is located, and the server is controlled to be served by the external service by opening or closing the control port under the condition that the health check result represents that the server is in a normal state. The application control method provided by the disclosure is simple and controllable, achieves advanced verification, rapid fault isolation and diagnosis in the service, reduces the application updating risk, and effectively improves the customer service quality and the application operation and maintenance maturity. The problem that before the application program serves externally, internal technology and service verification are carried out on the updated function in advance so as to discover and control the application program to be updated in advance is solved.
According to the embodiment of the present disclosure, the application control apparatus 600 executed by the load balancing device further includes a first allocating module, configured to maintain the control port of the server in a closed state in response to not receiving the health check result from the server, and allocate an access request for requesting access to the target application to a server other than the server whose control port is in the closed state.
According to an embodiment of the present disclosure, the application control apparatus 600 executed by the load balancing device further includes an obtaining module and a positioning module.
The obtaining module is used for responding to the health check result which is not received from the server and obtaining the network address of the server.
The positioning module is used for positioning the server according to the network address of the server.
Fig. 7 schematically shows a block diagram of an application control apparatus executed by a load balancing device according to another embodiment of the present disclosure.
As shown in fig. 7, the application control apparatus 700 includes a deployment module 710, a setting module 720, a second sending module 730, a second determination module 740, and a second allocating module 750.
The deployment module 710 is configured to deploy a probe page of the target application in a server where the target application is located.
The setting module 720 is configured to set access parameters of the probe page in a parameter table of the database, where the access parameters include an allowed access parameter and a prohibited access parameter.
The second sending module 730 is configured to send a health check request to the server before the target application provides the service to the user.
The second determination module 740 is configured to determine whether a health check result is received from the server.
The second allocating module 750 is configured to allocate, to the server, an access request for requesting to access the target application in response to receiving the health check result from the server, where the health check result indicates that the server is in a normal state and the access parameter of the probe page is the allowed access parameter.
According to an embodiment of the present disclosure, the application control apparatus 700 further includes a modification module, configured to modify an access parameter of the probe page in the parameter table of the database to be an access prohibition parameter in a case where the server is prohibited from responding to an access request for requesting access to the target application.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first sending module 610, the first judging module 620 and the controlling module 630 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the first sending module 610, the first determining module 620, and the controlling module 630 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of the three. Alternatively, at least one of the first transmitting module 610, the first determining module 620 and the controlling module 630 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
It should be noted that, the application control apparatus part executed by the load balancing device in the embodiment of the present disclosure corresponds to the application control method part executed by the load balancing device in the embodiment of the present disclosure, and the description of the application control apparatus part executed by the load balancing device specifically refers to the application control method part executed by the load balancing device, and is not repeated here. The application control device part in the embodiment of the present disclosure corresponds to the application control method part in the embodiment of the present disclosure, and the description of the application control device part specifically refers to the application control method part, which is not described herein again.
The present disclosure provides an electronic device, including: one or more processors; a memory for storing one or more instructions, wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the methods provided by the present disclosure.
FIG. 8 schematically illustrates a block diagram of a computer system suitable for implementing the methods described in the present disclosure, in accordance with an embodiment of the present disclosure. The computer system illustrated in FIG. 8 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 8, a computer system 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the system 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
System 800 may also include an input/output (I/O) interface 805, also connected to bus 804, according to an embodiment of the disclosure. The system 800 may also include one or more of the following components connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 802 and/or RAM 803 described above and/or one or more memories other than the ROM 802 and RAM 803.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. An application control method performed by a load balancing device, comprising:
before a target application provides service for a user, a health check request is sent to a server by accessing a service port of the server where the target application is located; the target application comprises a detection page with access parameters set in a parameter table of a database; the access parameters comprise an access permission parameter and an access prohibition parameter; the access permission parameter refers to a parameter for allowing the server to respond to an access request for requesting access to the target application; the access prohibition parameter refers to a parameter prohibiting the server from responding to an access request for requesting access to the target application;
judging whether a health check result from the server is received or not; and
and in response to the health check result from the server being received and the health check result representing that the server is in a normal state and the access parameter of the detection page is an access-allowed parameter, controlling to open a control port of the server so that the target application can provide a service to a user.
2. The method of claim 1, further comprising:
in response to not receiving the health check result from the server, maintaining the control port of the server in a closed state, and distributing an access request for requesting to access the target application to other servers except the server of which the control port is in the closed state.
3. The method of claim 2, further comprising:
in response to not receiving a health check result from the server, obtaining a network address of the server; and
and positioning the server according to the network address of the server.
4. An application control method comprising:
deploying a detection page of a target application in a server where the target application is located;
setting access parameters of the detection page in a parameter table of a database, wherein the access parameters comprise an access permission parameter and an access prohibition parameter;
sending a health check request to the server before the target application provides a service to a user;
judging whether a health check result from the server is received or not; and
in response to receiving a health check result from the server, and the health check result indicates that the server is in a normal state and the access parameter of the probe page is an access-allowed parameter, allocating an access request for requesting access to the target application to the server;
wherein the access permission parameter refers to a parameter that allows the server to respond to an access request for requesting access to the target application; the access prohibition parameter refers to a parameter that prohibits the server from responding to an access request for requesting access to the target application.
5. The method of claim 4, further comprising:
and under the condition that the server is prohibited from responding to the access request for requesting to access the target application, modifying the access parameter of the detection page in the parameter table of the database into a prohibited access parameter.
6. An application control apparatus executed by a load balancing device, comprising:
the system comprises a first sending module, a second sending module and a first processing module, wherein the first sending module is used for sending a health check request to a server by accessing a service port of the server where a target application is located before the target application provides service for a user; the target application comprises a detection page with access parameters set in a parameter table of a database; the access parameters comprise an access permission parameter and an access prohibition parameter; wherein the access permission parameter refers to a parameter that allows the server to respond to an access request for requesting access to the target application; the access prohibition parameter refers to a parameter prohibiting the server from responding to an access request for requesting access to the target application;
the first judgment module is used for judging whether the health check result from the server is received or not; and
and the control module is used for controlling to open a control port of the server in response to receiving the health check result from the server, wherein the health check result represents that the server is in a normal state and the access parameter of the detection page is an access-allowed parameter, so that the target application can provide service for a user.
7. The apparatus of claim 6, further comprising:
and the first distribution module is used for responding to the health check result which is not received from the server, maintaining the control port of the server in a closed state, and distributing the access request for requesting to access the target application to other servers except the server with the control port in the closed state.
8. The apparatus of claim 7, further comprising:
an obtaining module, configured to obtain a network address of the server in response to not receiving a health check result from the server; and
and the positioning module is used for positioning the server according to the network address of the server.
9. An application control apparatus comprising:
the deployment module is used for deploying the detection page of the target application in the server where the target application is located;
the setting module is used for setting the access parameters of the detection page in a parameter table of a database, wherein the access parameters comprise an access permission parameter and an access prohibition parameter; the access permission parameter refers to a parameter for allowing the server to respond to an access request for requesting access to the target application; the access prohibition parameter refers to a parameter prohibiting the server from responding to an access request for requesting access to the target application;
a second sending module, configured to send a health check request to the server before the target application provides a service to a user;
the second judgment module is used for judging whether the health check result from the server is received or not; and
and the second distribution module is used for distributing the access request for requesting to access the target application to the server in response to receiving the health check result from the server, wherein the health check result represents that the server is in a normal state and the access parameter of the probe page is an access-allowed parameter.
10. The apparatus of claim 9, further comprising:
and the modification module is used for modifying the access parameter of the detection page in the parameter table of the database into an access-prohibited parameter under the condition that the server is prohibited from responding to the access request for requesting to access the target application.
11. An electronic device, comprising:
one or more processors;
a memory to store one or more instructions that,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
CN201910868372.9A 2019-09-12 2019-09-12 Application control method and device, electronic equipment and computer readable storage medium Active CN110581855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910868372.9A CN110581855B (en) 2019-09-12 2019-09-12 Application control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910868372.9A CN110581855B (en) 2019-09-12 2019-09-12 Application control method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110581855A CN110581855A (en) 2019-12-17
CN110581855B true CN110581855B (en) 2021-11-09

Family

ID=68812936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910868372.9A Active CN110581855B (en) 2019-09-12 2019-09-12 Application control method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110581855B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098728B (en) * 2019-12-23 2023-12-19 华为云计算技术有限公司 Health check method of load balancing system and related equipment
CN111158987B (en) * 2019-12-31 2023-09-19 中国银行股份有限公司 Health check method and device for micro-service architecture
CN111221714A (en) * 2020-01-02 2020-06-02 广州虎牙科技有限公司 Service dial testing method, device, system and storage medium
CN111404759B (en) * 2020-04-17 2022-03-04 腾讯科技(深圳)有限公司 Service detection method, rule configuration method, related device and medium
CN111651329B (en) * 2020-06-08 2023-08-01 中国工商银行股份有限公司 Health check method and device for application, computer system and storage medium
CN111722932B (en) * 2020-06-28 2023-08-04 中国工商银行股份有限公司 Control method and device for application system, computer system and storage medium
CN112187735A (en) * 2020-09-10 2021-01-05 中信银行股份有限公司 WAF-combined protection method in PaaS container cloud platform environment
CN112187737A (en) * 2020-09-10 2021-01-05 中信银行股份有限公司 WAF-combined protection method in PaaS container cloud platform environment
CN112346777A (en) * 2020-11-20 2021-02-09 浙江百应科技有限公司 Smooth application program publishing method and device
CN112882895A (en) * 2021-02-22 2021-06-01 中国工商银行股份有限公司 Health examination method, device, computer system and readable storage medium
CN113239396A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Data access system, method, device, computer equipment and medium
CN114938377B (en) * 2022-04-20 2024-05-17 京东科技信息技术有限公司 Back-end server management method and device, readable medium and electronic equipment
CN114785861B (en) * 2022-06-22 2022-12-13 飞狐信息技术(天津)有限公司 Service request forwarding system, method, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578066B1 (en) * 1999-09-17 2003-06-10 Alteon Websystems Distributed load-balancing internet servers
CN103368754A (en) * 2012-03-26 2013-10-23 中兴通讯股份有限公司 Service failure detection method, apparatus, system and device
CN104065508A (en) * 2014-06-23 2014-09-24 浪潮(北京)电子信息产业有限公司 Application service health examination method, device and system
CN105589787A (en) * 2015-12-18 2016-05-18 畅捷通信息技术股份有限公司 Health check method and heath check system for application program
CN107612727A (en) * 2017-09-14 2018-01-19 掌阅科技股份有限公司 Distributed health examination method, computing device and computer-readable storage medium
CN107634871A (en) * 2016-07-19 2018-01-26 北京金山云网络技术有限公司 A kind of continuity testing method, apparatus and system
CN108595333A (en) * 2018-04-26 2018-09-28 Oppo广东移动通信有限公司 The health examination method and device of application process in PaaS platform
CN109660626A (en) * 2018-12-29 2019-04-19 天翼电子商务有限公司 A kind of load-balancing method, system and load balancing monitoring client

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8533312B2 (en) * 2010-08-05 2013-09-10 Citrix Systems, Inc. Systems and methods for server initiated connection management in a multi-core system
US9900377B2 (en) * 2015-08-07 2018-02-20 International Business Machines Corporation Dynamic healthchecking load balancing gateway

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578066B1 (en) * 1999-09-17 2003-06-10 Alteon Websystems Distributed load-balancing internet servers
CN103368754A (en) * 2012-03-26 2013-10-23 中兴通讯股份有限公司 Service failure detection method, apparatus, system and device
CN104065508A (en) * 2014-06-23 2014-09-24 浪潮(北京)电子信息产业有限公司 Application service health examination method, device and system
CN105589787A (en) * 2015-12-18 2016-05-18 畅捷通信息技术股份有限公司 Health check method and heath check system for application program
CN107634871A (en) * 2016-07-19 2018-01-26 北京金山云网络技术有限公司 A kind of continuity testing method, apparatus and system
CN107612727A (en) * 2017-09-14 2018-01-19 掌阅科技股份有限公司 Distributed health examination method, computing device and computer-readable storage medium
CN108595333A (en) * 2018-04-26 2018-09-28 Oppo广东移动通信有限公司 The health examination method and device of application process in PaaS platform
CN109660626A (en) * 2018-12-29 2019-04-19 天翼电子商务有限公司 A kind of load-balancing method, system and load balancing monitoring client

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Scalable load balancing using enhanced server health monitoring and adimission control";Mohammed A. Saifullah等;《2015 IEEE International Conference on Engineering and Technology (ICETECH)》;20150924;全文 *
"计算资源池虚拟化层健康性检查及标准研究";薛永军等;《信息技术与信息化》;20151015;全文 *

Also Published As

Publication number Publication date
CN110581855A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN110581855B (en) Application control method and device, electronic equipment and computer readable storage medium
US10268837B2 (en) Validation of containers
TWI544328B (en) Method and system for probe insertion via background virtual machine
US10749985B2 (en) Custom communication channels for application deployment
US20170208099A1 (en) Standards compliance for computing data
US9805202B2 (en) Automated SDK ingestion
US10397352B2 (en) Network infrastructure management
EP3552098B1 (en) Operating system update management for enrolled devices
US10581897B1 (en) Method and system for implementing threat intelligence as a service
US11153149B2 (en) System and method for proactive distributed agent based network diagnosis
US20190251013A1 (en) Validation of containers
KR20060045810A (en) Efficient patching
US9979638B2 (en) Systems and methods to construct engineering environment supporting API enablement for software defined networking
US10049033B2 (en) Application gateway for cloud computing systems
US11153291B2 (en) Non-disruptive system for verifying default passwords have been changed without causing security lockouts
CN111914262A (en) Test method, device, system, electronic equipment and storage medium
US20160371102A1 (en) System and method for supporting execution of application based on multi-platform using virtual platform service
CN111737687A (en) Access control method, system, electronic device and medium for webpage application system
US20160350132A1 (en) Systems and methods for exporting diagnostic data and securing privileges in a service operating system
WO2019222941A1 (en) Method for evaluating application deployment, apparatus, computer program product, and readable medium
US20230315620A1 (en) System and Method for Diagnosing a Computing Device in Safe Mode
US10296737B2 (en) Security enforcement in the presence of dynamic code loading
US11645066B2 (en) Managing and distributing patches for multi-tenant applications
CN114285664A (en) Abnormal user identification method, system, device and medium
US11709750B2 (en) Dynamically mapping software infrastructure utilization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant