CN113296911A - Cluster calling method, cluster calling device, electronic equipment and readable storage medium - Google Patents

Cluster calling method, cluster calling device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113296911A
CN113296911A CN202110568614.XA CN202110568614A CN113296911A CN 113296911 A CN113296911 A CN 113296911A CN 202110568614 A CN202110568614 A CN 202110568614A CN 113296911 A CN113296911 A CN 113296911A
Authority
CN
China
Prior art keywords
cluster
target
calling
electronic device
configuration information
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.)
Granted
Application number
CN202110568614.XA
Other languages
Chinese (zh)
Other versions
CN113296911B (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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co Ltd
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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110568614.XA priority Critical patent/CN113296911B/en
Publication of CN113296911A publication Critical patent/CN113296911A/en
Application granted granted Critical
Publication of CN113296911B publication Critical patent/CN113296911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5066Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides a cluster calling method, a cluster calling device, an electronic device and a readable storage medium. The cluster calling method is applied to first electronic equipment which can be in communication connection with second electronic equipment, and comprises the following steps: generating a cluster calling request under the condition that target operation is triggered, wherein the target operation comprises cluster switching operation or flow head operation aiming at a test task; sending a cluster calling request to second electronic equipment so that the second electronic equipment responds to the cluster calling request and determines a target cluster identifier, wherein the target cluster identifier comprises a gray scale cluster identifier or a formal cluster identifier; and calling the target cluster according to the target cluster identifier sent by the second electronic equipment so that the target cluster executes the test task.

Description

Cluster calling method, cluster calling device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a cluster calling method, a cluster calling apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
In order to ensure the normal operation of the application, the application generally needs to be tested before coming online.
In the course of implementing the disclosed concept, the inventors found that there are at least the following problems in the related art, and it is difficult to implement more accurate tests with the related art.
Disclosure of Invention
In view of this, the disclosed embodiments provide a cluster calling method, a cluster calling apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
One aspect of the embodiments of the present disclosure provides a cluster calling method, which is applied to a first electronic device capable of being in communication connection with a second electronic device, where the method includes: generating a cluster calling request under the condition that target operation is triggered, wherein the target operation comprises cluster switching operation or flow head operation aiming at a test task; sending the cluster calling request to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster calling request, wherein the target cluster identifier includes a gray scale cluster identifier or a formal cluster identifier; and calling a target cluster according to the target cluster identifier sent by the second electronic device so that the target cluster executes the test task.
According to an embodiment of the present disclosure, the invoking a target cluster according to a target cluster identifier sent by the second electronic device, so that the target cluster executes the test task includes: and calling the target cluster according to the target cluster identifier sent by the second electronic device, so that the target cluster accesses a database corresponding to the target cluster to execute the test task.
According to an embodiment of the present disclosure, the invoking the target cluster according to the target cluster identifier sent by the second electronic device, so that the target cluster accesses the database corresponding to the target cluster to execute the test task includes: calling a formal cluster corresponding to the formal cluster identifier so that the formal cluster accesses a database corresponding to the formal cluster to execute the test task when the target cluster identifier sent by the second electronic device is determined to be the formal cluster identifier; and calling the gray cluster to make the gray cluster access a target database to execute the test task under the condition that the target cluster identifier sent by the second electronic device is determined to be the gray cluster identifier, wherein the target database is a database corresponding to a formal cluster determined according to the gray cluster.
According to an embodiment of the present disclosure, the cluster calling method further includes: acquiring a first verification request; responding to the first verification request, and determining actual configuration information of the actually called cluster and comparison configuration information associated with the actually called cluster; sending a second verification request to the second electronic device, so that the second electronic device determines expected configuration information of an expected called cluster in response to the second verification request, wherein the expected called cluster is the target cluster; and generating a verification result for representing the calling correctness of the cluster according to the actual configuration information, the comparison configuration information and the expected configuration information.
According to an embodiment of the present disclosure, the generating a verification result for characterizing correctness of the cluster invocation according to the actual configuration information, the comparison configuration information, and the expected configuration information includes: generating a first verification result for representing the correctness of cluster calling according to the cluster information included in the expected configuration information and the actual configuration information; generating a second verification result for representing the cluster calling correctness according to the database information and the application version information included in the comparison configuration information and the actual configuration information; and generating the verification result for representing the correctness of the cluster calling according to the first verification result and the second verification result.
According to an embodiment of the present disclosure, the determining, in response to the first verification request, actual configuration information of the actually called cluster and comparative configuration information associated with the actually called cluster includes: and responding to the first verification request, and calling a verification interface to acquire the actual configuration information of the actually called cluster and the comparison configuration information associated with the actually called cluster.
According to an embodiment of the present disclosure, the target operation is a cluster switching operation; the generating a cluster call request when it is detected that the target operation is triggered includes: generating cluster switching information under the condition that the cluster switching operation is triggered; and generating the cluster calling request according to the cluster switching information.
According to an embodiment of the present disclosure, the flow header operation includes a page login operation, an asynchronous operation, or a message queue operation.
According to an embodiment of the present disclosure, the test task includes a test task for warehouse traffic.
Another aspect of the embodiments of the present disclosure provides a cluster calling apparatus, which is disposed in a first electronic device capable of being communicatively connected to a second electronic device, where the apparatus includes: the system comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating a cluster calling request under the condition that target operation is detected to be triggered, and the target operation comprises cluster switching operation or flow head operation aiming at a test task; a first sending module, configured to send the cluster calling request to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster calling request, where the target cluster identifier includes a grayscale cluster identifier or a formal cluster identifier; and the calling module is used for calling the target cluster according to the target cluster identifier sent by the second electronic equipment so that the target cluster executes the test task.
Another aspect of the embodiments of the present disclosure provides a first electronic device, including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program product comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, a cluster calling request is generated by adopting a first electronic device when detecting that cluster switching operation or flow head operation for a test task is triggered, the cluster calling request is sent to a second electronic device, so that the second electronic device determines a target cluster identifier of a target cluster for executing the test task in response to the cluster calling request, and the target cluster is called according to the target cluster identifier sent by the second electronic device, so that the target cluster executes the test task.
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 for an application cluster invocation method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a cluster call method according to an embodiment of the disclosure;
FIG. 3 schematically shows a schematic diagram of a cluster call method according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a diagram for verifying correctness of a cluster call, according to an embodiment of the disclosure;
FIG. 5 schematically shows a schematic diagram of a cluster switching page according to an embodiment of the disclosure;
FIG. 6 schematically shows a schematic diagram of a configuration information page according to an embodiment of the disclosure;
FIG. 7 schematically shows a block diagram of a cluster calling device according to an embodiment of the disclosure; and
fig. 8 schematically shows a block diagram of a first electronic device adapted to implement a cluster call method according to 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 "A, B, 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 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.).
For a split-cluster system, in order to ensure isolation between clusters as much as possible, a manner of deploying an independent application server and a database for each cluster is generally adopted. The diversity group system may include a warehousing system.
In order to ensure the normal operation of the application, the application usually needs to be tested before coming on line, so that a test environment corresponding to the production environment is generated. In the embodiments of the present disclosure, a cluster corresponding to a production environment may be referred to as a formal cluster, and a cluster corresponding to a test environment may be referred to as a gray scale cluster. In the process of executing the test task, gray scale clustering and formal clustering are involved.
In the process of implementing the present disclosure, the inventor finds that it is difficult to implement a more precise test by using the related art, which is caused by the following reason, in the first aspect, in order to implement a test for a test task, in addition to the test task, other tasks related to the test task need to be tested, and thus, it is difficult to implement a more precise test for the test task. In the second aspect, since some test task call clusters have randomness, i.e., it is difficult to determine whether to execute a test task by a gray scale cluster or a formal cluster, e.g., execute a test task involving a message queue or an asynchronous operation, it is difficult to achieve a more accurate test.
Illustratively, if the sub-cluster system is a warehousing system, the warehousing system may include a north China cluster, a east China cluster, a south China cluster, an achievement cluster, a Shenzhen cluster, a Beijing cluster, a Suzhou cluster, a Pudong cluster, and an extranet cluster. Each cluster may include an application cluster and a database cluster. The application clusters included by each cluster may be understood to be formal clusters. The application cluster may include a plurality of application servers and the database cluster may include a plurality of database servers. Each cluster may include multiple types of warehouses, such as an RFID (Radio Frequency Identification) warehouse, a general business warehouse, a multi-set single-month rack review warehouse, a single-set single-month rack review warehouse, and an automated warehouse. The different types of warehouses implement different functions. At present, the test task is to test the RFID warehouse of the Beijing cluster, and other types of warehouses of the Beijing cluster do not need to be tested. It is difficult to implement a more accurate test for the RFID warehouse using the methods in the related art, that is, in addition to testing the RFID warehouse, other types of warehouses of the beijing cluster may also be tested.
In order to solve the above problem, the inventors propose a scheme by determining a target cluster for responding to a cluster call request in a case where it is detected that a target operation is triggered. Wherein the target operation comprises a cluster switching operation or a flow head operation aiming at the test task. The main reason for the above limitation in the case of target operations being triggered is that the request triggered by each operation usually needs to determine the cluster that responds to the request, but if this is done, the modification effort is large for more complex systems, and therefore, a large cost is involved. And it is found that the cluster attribution verification can be performed on the request triggered by the target operation instead of all the requests triggered by all the operations, so that more accurate test can be realized. This is because, except for the target operation, the called cluster is not changed in general when other operations are triggered, and therefore, the request triggered by the target operation can be verified as to the cluster ownership, which can reduce the investment cost on the basis of realizing more accurate testing. The target operation may include a cluster switch operation or a flow header operation for the test task. The flow header operations may include page login operations, asynchronous operations, or message queue operations. In addition, the cluster switching between the gray cluster and the formal cluster can be realized through the scheme, namely, a certain task in the production environment is switched from the execution of the formal cluster to the execution of the gray cluster, or the execution of the gray cluster is switched to the execution of the formal cluster.
Specifically, the disclosed embodiments provide a cluster calling method, a cluster calling apparatus, a first electronic device, a computer-readable storage medium, and a computer program product. The method may include a generating procedure, a sending procedure, and a calling procedure. In the generation process, a cluster calling request is generated under the condition that a target operation is detected to be triggered, wherein the target operation comprises a cluster switching operation or a flow head operation aiming at a test task. In the sending process, a cluster calling request is sent to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster calling request, wherein the target cluster identifier comprises a gray scale cluster identifier or a formal cluster identifier. And in the calling process, calling the target cluster according to the target cluster identifier sent by the second electronic equipment so that the target cluster executes the test task.
FIG. 1 schematically illustrates an exemplary system architecture 100 to which a cluster call method may be applied, according to an embodiment of the 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, a system architecture 100 according to this embodiment may include a first electronic device 101, a second electronic device 102, a grayscale cluster 103, a formal cluster 104, and a network 105. The gray cluster 103 may include a plurality of servers, and the first electronic device 101 may be communicatively connected to the second electronic device 102, the gray cluster 103, and the formal cluster 104, respectively, via the network 105. The network 105 may include various connection types, such as wired and/or wireless communication links, and so forth.
The first electronic device 101 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like. The first electronic device 101 may also be a server providing various services. The second electronic device 102 may be a server.
The servers included in the gradation cluster 103 and the formal cluster 104 may be servers that provide various services.
The first electronic device 101 may generate a cluster call request upon detecting that a target operation is triggered, where the target operation may include a cluster switch operation or a flow header operation for a test task. The first electronic device 101 may send a cluster invocation request to the second electronic device 102.
The second electronic device 102 may determine a target cluster identifier in response to the cluster call request, where the target cluster identifier may include a grayscale cluster identifier or a formal cluster identifier. The second electronic device 102 may send the target cluster identification to the first electronic device 101.
The first electronic device 101 may invoke the target cluster corresponding to the target cluster identification to cause the target cluster to perform the test task. The target clusters may include gray scale clusters 103 or formal clusters 104.
It should be noted that the cluster calling method provided by the embodiment of the present disclosure may be generally executed by the first electronic device 101. Accordingly, the cluster calling apparatus provided by the embodiment of the present disclosure may be generally disposed in the first electronic device 101. The cluster calling method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the first electronic device 101 and capable of communicating with at least one of the first electronic device 101, the second electronic device 102, the grayscale cluster 103, and the formal cluster 104. Correspondingly, the cluster calling device provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster that is different from the first electronic device 101 and capable of communicating with at least one of the first electronic device 101, the second electronic device 102, the grayscale cluster 103, and the formal cluster 104.
It should be understood that the number of first electronic device, second electronic device, grayscale cluster, formal cluster, and network in fig. 1 are merely illustrative. There may be any number of first electronic devices, second electronic devices, grayscale clusters, formal clusters, and networks, as desired for implementation.
Fig. 2 schematically shows a flow chart of a cluster calling method according to an embodiment of the present disclosure. The cluster calling method is applied to the first electronic equipment which can be in communication connection with the second electronic equipment.
As shown in fig. 2, the method includes operations S210 to S230.
In operation S210, in a case that it is detected that a target operation is triggered, a cluster call request is generated, where the target operation includes a cluster switching operation or a flow header operation for a test task.
In operation S220, a cluster call request is sent to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster call request, where the target cluster identifier includes a grayscale cluster identifier or a formal cluster identifier.
In operation S230, the target cluster is called according to the target cluster identifier sent by the second electronic device, so that the target cluster executes the test task.
According to embodiments of the present disclosure, a target operation may characterize an operation that requires a cluster determination operation to be performed. The target operation may include a cluster switching operation or a flow header operation, where the cluster switching operation may be understood as an operation of performing cluster switching during the execution of the test task. For example, an operation of cluster switching between the gradation cluster and the formal cluster is performed. Flow header operations may be understood as operations of a flow header for a test task. The flow header operations may include page login operations, asynchronous operations, or message queue operations. The page login operation can be a WEB page login operation or a page login operation of the handheld device. Asynchronous operations may include operations for a Worker application. The cluster call request may include cluster setup information.
In accordance with embodiments of the present disclosure, each formal cluster may have a formal cluster identification corresponding to the formal cluster. In the case where the gray cluster is used in conjunction with a different formal cluster, the gray cluster may be characterized by a different gray cluster identifier. The gray scale cluster identifier of the gray scale cluster can have an association relation with the formal cluster identifier of the formal cluster with which the gray scale cluster identifier is used.
According to the embodiment of the disclosure, the first electronic device may detect whether a target operation is triggered, and if the first electronic device detects that the target operation is triggered, the first electronic device generates a cluster calling request for calling a cluster, and the cluster calling request. The second electronic device may store a target cluster identifier corresponding to the cluster setting information. The second electronic device may respond to the cluster calling request, determine a target cluster identifier of a target cluster for calling according to the cluster setting information, and send the target cluster identifier to the first electronic device. The first electronic device may invoke the target cluster corresponding to the target cluster identifier, so that the target cluster executes the test task. If the first electronic device does not detect that the target operation is triggered, the first electronic device does not execute the cluster calling method provided by the embodiment of the disclosure.
According to the embodiment of the disclosure, a cluster calling request is generated by adopting a first electronic device when detecting that cluster switching operation or flow head operation for a test task is triggered, the cluster calling request is sent to a second electronic device, so that the second electronic device determines a target cluster identifier of a target cluster for executing the test task in response to the cluster calling request, and the target cluster is called according to the target cluster identifier sent by the second electronic device, so that the target cluster executes the test task.
According to the embodiment of the disclosure, except for the target operation, under the condition that other operations are triggered, the called cluster is not changed, so that the request triggered by the target operation can be checked for cluster ownership, and therefore, on the basis of realizing more accurate test, the investment cost is reduced.
According to the embodiment of the disclosure, invoking the target cluster according to the target cluster identifier sent by the second electronic device to enable the target cluster to execute the test task may include the following operations.
And calling the target cluster according to the target cluster identifier sent by the second electronic equipment, so that the target cluster accesses the database corresponding to the target cluster to execute the test task.
According to an embodiment of the present disclosure, each formal cluster has a database cluster corresponding to the formal cluster. The gray scale clusters may be used to process test tasks for different formal clusters.
According to the embodiment of the disclosure, the first electronic device calls the target cluster according to the target cluster identifier, so that the target cluster accesses the database corresponding to the target cluster under the condition that the test task needs to access the database.
According to the embodiment of the disclosure, invoking the target cluster according to the target cluster identifier sent by the second electronic device, so that the target cluster accesses the database corresponding to the target cluster to execute the test task, may include the following operations.
Calling a formal cluster corresponding to the formal cluster identifier under the condition that the target cluster identifier sent by the second electronic device is determined to be the formal cluster identifier, so that the formal cluster accesses a database corresponding to the formal cluster to execute the test task; and under the condition that the target cluster identifier sent by the second electronic equipment is determined to be the gray cluster identifier, calling the gray cluster so that the gray cluster accesses a target database to execute the test task, wherein the target database is a database corresponding to a formal cluster determined according to the gray cluster.
According to the embodiment of the disclosure, if the first electronic device determines that the target cluster identifier is a formal cluster identifier, the formal cluster corresponding to the formal cluster identifier may be called, so that the formal cluster accesses the database corresponding to the formal cluster.
According to the embodiment of the disclosure, if it is determined that the target cluster identifier is the gray cluster identifier, the first electronic device may call the gray cluster to enable the gray cluster to access the target database, where the target database may be a database corresponding to a formal cluster determined according to the gray cluster.
According to an embodiment of the present disclosure, since the gray cluster and the official cluster may use the same database cluster, a problem of data confusion may occur. In order to avoid data confusion as much as possible, a mode of adding type identification for characterizing the data type of the data to the data involved in the test task can be adopted, and the data type can comprise gray data or formal data. The type identifier may be associated with a target cluster identifier. The subsequent target cluster can access the target data under the condition of accessing the database corresponding to the target cluster, wherein the target data is used for characterizing the data of the type identifier corresponding to the target cluster identifier.
Fig. 3 schematically shows a schematic diagram of a cluster call method according to an embodiment of the present disclosure. As shown in FIG. 3, the cluster invocation system 300 may include a first electronic device 301, a second electronic device 302, a grayscale cluster 303, a formal cluster 304, a formal cluster 305, a database cluster 306, a database cluster 307, and a network 308. Database cluster 306 is a database cluster corresponding to regular cluster 304, and database cluster 307 is a database cluster corresponding to regular cluster 305. The grayscale cluster 303 has functionality to support access to the database cluster 306 and the database cluster 307. The cluster identifier corresponding to formal cluster 305 is formal cluster identifier 1, and the cluster identifier corresponding to formal cluster 306 is formal cluster identifier 2. Gray scale clusters 303 may be characterized by different gray scale cluster identifications. The gray scale cluster mark can be matched with the formal cluster mark
The first electronic device 301 generates a cluster call request and sends the cluster call request to the second electronic device 302 when detecting that the target operation is triggered, and the second electronic device 302 determines a target cluster identifier in response to the cluster call request.
The first electronic device 301, if it is determined that the target cluster identification is a grayscale cluster identification corresponding to formal cluster identification 1, may invoke the grayscale cluster such that the grayscale cluster accesses the database in the database cluster 306 corresponding to formal cluster 305. The first electronic device 301, if it is determined that the target cluster identification is a grayscale cluster identification corresponding to formal cluster identification 2, may invoke the grayscale cluster such that the grayscale cluster accesses the database in the database cluster 307 corresponding to the formal cluster 306.
If the first electronic device 301 determines that the target cluster identifier is formal cluster identifier 1, the formal cluster 305 corresponding to the formal cluster identifier 1 is invoked, so that the formal cluster 305 accesses the database in the database cluster 306 corresponding to the formal cluster 305.
If the first electronic device 301 determines that the target cluster identifier is formal cluster identifier 2, the formal cluster 306 corresponding to formal cluster identifier 2 is invoked, so that the formal cluster 306 accesses the database in the database cluster 307 corresponding to the formal cluster 306.
Calling the target cluster according to the target cluster identification sent by the second electronic equipment so that the target cluster executes the test task
According to an embodiment of the present disclosure, the target cluster may receive a database disconnection request transmitted from the second electronic device. And the target cluster responds to the database disconnection request and disconnects the database corresponding to the target cluster.
According to the embodiment of the disclosure, the second electronic device may detect whether a database switching operation is triggered, if the second electronic device detects that the database switching operation is triggered, the second electronic device generates a database disconnection request and sends the database disconnection request to the target cluster, and the target cluster responds to the database disconnection request to disconnect the database corresponding to the target cluster.
According to an embodiment of the present disclosure, the cluster calling method may further include the following operations.
Acquiring a first verification request; in response to the first validation request, determining actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster; sending a second verification request to the second electronic device, so that the second electronic device determines expected configuration information of the cluster expected to be called in response to the second verification request, wherein the cluster expected to be called is a target cluster; and generating a verification result for representing the cluster calling correctness according to the actual configuration information, the comparison configuration information and the expected configuration information.
In accordance with embodiments of the present disclosure, to determine that a cluster executing a test task is an expected calling cluster, the actual calling cluster may be verified.
According to an embodiment of the present disclosure, the comparative configuration information associated with the actually invoked cluster may be understood as the configuration information of the cluster corresponding to the actually invoked cluster. That is, if the actually called cluster is a gray scale cluster, the configuration information of the cluster corresponding to the actually called cluster is the configuration information of the main cluster corresponding to the gray scale cluster. And if the actually called cluster is the formal cluster, the configuration information of the cluster corresponding to the actually called cluster is the configuration information of the gray scale cluster. The expected configuration information of the cluster expected to be invoked may be understood to be the expected configuration information of the target cluster.
According to an embodiment of the present disclosure, the cluster information included in the actual configuration information may include at least one of a cluster category, a cluster domain name, a cluster alias, and a start time for characterizing the actually invoked cluster. The cluster information included with the expected configuration information may include at least one of a cluster category, a cluster domain name, a cluster alias, and a start time for characterizing the cluster of the expected invocation. The actual configuration information may also include database information characterizing the database actually invoked and/or application version information of the application. The contrast configuration information may include database information used to characterize the contrast and/or application version information for the application.
According to the embodiment of the disclosure, generating a verification result for characterizing the correctness of the cluster call according to the actual configuration information, the comparison configuration information and the expected configuration information may include the following operations.
Generating a first verification result for representing the correctness of cluster calling according to cluster information included by the expected configuration information and the actual configuration information; generating a second verification result for representing the cluster calling correctness according to the database information and the application version information included in the comparison configuration information and the actual configuration information; and generating a verification result for representing the calling correctness of the cluster according to the first verification result and the second verification result.
According to the embodiment of the disclosure, the first electronic device determines whether cluster information included in the expected configuration information is consistent with cluster information included in the actual configuration information, and if the first electronic device determines that the cluster information included in the expected configuration information is consistent with the cluster information included in the actual configuration information, a first verification result used for representing correctness of cluster calling is verified. And if the cluster information included in the expected configuration information is determined to be inconsistent with the cluster information included in the actual configuration information, the generated first verification result for characterizing the correctness of the cluster call is verification failure.
According to the embodiment of the disclosure, the first electronic device determines whether the database information included in the comparison configuration information and the database information included in the actual configuration information are consistent and whether the application version information included in the comparison configuration information and the application version information included in the actual configuration information satisfy a preset condition, and if the first electronic device determines that the database information included in the comparison configuration information and the database information included in the actual configuration information are consistent and that the application version information included in the comparison configuration information and the application version information included in the actual configuration information satisfy the preset condition, a second verification result used for representing the correctness of the cluster call is verified. And if the database information included in the comparison configuration information and the database information included in the actual configuration information are determined to be inconsistent and/or the application version information included in the comparison configuration information and the application version information included in the actual configuration information do not meet the preset condition, the generated second verification result for representing the cluster calling correctness is verification failure. The application version information included in the comparison configuration information and the application version information included in the actual configuration information meet the preset condition, and it can be understood that a difference value between the application version information included in the comparison configuration information and the application version information included in the actual configuration information meets a version difference threshold. The application version information may be understood as an application version number.
According to the embodiment of the disclosure, the first electronic device generates a first verification result for representing the cluster calling correctness as a verification pass and generates a second verification result for representing the cluster calling correctness as a verification pass according to the determination, and the first verification result for representing the cluster calling correctness is a verification pass, and the second verification result for representing the cluster calling correctness is a verification pass. The first electronic device generates a first verification result for representing the cluster calling correctness as verification failure and/or generates a second verification result for representing the cluster calling correctness as verification failure according to the determination, and generates a verification result for representing the cluster calling correctness as verification failure.
For a better understanding of the scheme for verifying the correctness of a cluster call provided by the embodiments of the present disclosure, it is explained below with reference to fig. 4.
Fig. 4 schematically shows a schematic diagram for verifying correctness of a cluster call according to an embodiment of the present disclosure.
The expected configuration information in FIG. 4 may include cluster information of clusters expected to be invoked, i.e., the cluster categories of the clusters 688 + 607-2 and 688 + 607-2 are gray level clusters, and the cluster alias is http:// laswasshaidu.xx.com. The actual configuration information may include cluster information of the actually called cluster, that is, the cluster is haidu, the cluster category of haidu is a gray-scale cluster, the application version information is 20210304111528, and the database information is a database cluster corresponding to the east China cluster. The comparison configuration information may include that the comparison cluster is a headong, the cluster category of the headong is not a gray cluster (i.e., a formal cluster), the application version information is 20210304111528, and the database information is a database cluster corresponding to the east China cluster.
According to the embodiment of the disclosure, since the cluster information of the actual call included in the actual configuration information is consistent with the cluster information of the expected call included in the expected configuration information, it is determined that the first verification result is verification pass. The database information included in the actual configuration information is consistent with the database information included in the comparison configuration information, and the application version information included in the actual configuration information is consistent with the application version information included in the comparison configuration information, so that the second verification result is a verification pass, and the verification result used for representing the correctness of the cluster calling is determined to be the verification pass according to the first verification result and the second verification result.
According to an embodiment of the present disclosure, determining actual configuration information of an actually invoked cluster and comparative configuration information associated with the actually invoked cluster in response to the first verification request may include the following operations.
In response to the first authentication request, an authentication interface is invoked to obtain actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster.
According to the embodiment of the disclosure, the first electronic device may obtain the actual configuration information and the comparative configuration information by calling the verification interface.
According to an embodiment of the present disclosure, the target operation is a cluster switching operation; in the case that the target operation is detected to be triggered, generating the cluster call request may include the following operations.
Generating cluster switching information under the condition that the cluster switching operation is triggered; and generating a cluster calling request according to the cluster switching information.
According to the embodiment of the disclosure, the triggering of the cluster switching operation can be realized by triggering the related control. For example, fig. 5 schematically shows a schematic diagram of a cluster switching page according to an embodiment of the present disclosure. The cluster switching operation may be triggered by triggering the associated control in fig. 5.
According to an embodiment of the present disclosure, the first electronic device may periodically detect whether the cluster switching operation is triggered, for example, detect whether the cluster switching operation is triggered every preset time. The preset time may be configured according to actual situations, and is not limited herein. In the event that a cluster switching operation is detected to be triggered, generating prompting information, wherein the prompting information can be used for prompting that the cluster is switched.
According to an embodiment of the present disclosure, the flow header operation includes a page login operation, an asynchronous operation, or a message queue operation.
According to an embodiment of the present disclosure, the page login operation may include a WEB page login operation or a page login operation of the handheld device. Asynchronous operations may include operations for a Worker application.
FIG. 6 schematically shows a schematic diagram of a configuration information page according to an embodiment of the disclosure. As shown in fig. 6, a configuration information page for the warehousing system is displayed and implemented on the WEB side. The configuration information page may include a first selection box for selecting a region, a second selection box for selecting a hub, a third selection box for selecting a warehouse, and a login control for logging in. And after the selection operation of the area, the distribution center and the warehouse is completed, clicking the login control, thereby generating the cluster calling request.
According to embodiments of the present disclosure, the test tasks may include test tasks for warehouse traffic.
According to embodiments of the present disclosure, a test task may be used to characterize a test task for warehouse traffic of a warehousing system.
Fig. 7 schematically shows a block diagram of a cluster calling device according to an embodiment of the disclosure. The cluster calling device is arranged on the first electronic equipment which can be in communication connection with the second electronic equipment.
As shown in fig. 7, the cluster invoking device 700 may include a generating module 710, a first sending module 720 and an invoking module 730.
The generating module 710, the first sending module 720 and the calling module 730 are communicatively connected.
The generating module 710 is configured to generate a cluster call request when it is detected that a target operation is triggered, where the target operation includes a cluster switching operation or a flow header operation for a test task.
The first sending module 720 is configured to send a cluster call request to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster call request, where the target cluster identifier includes a grayscale cluster identifier or a formal cluster identifier.
The invoking module 730 is configured to invoke the target cluster according to the target cluster identifier sent by the second electronic device, so that the target cluster executes the test task.
According to the embodiment of the disclosure, a cluster calling request is generated by adopting a first electronic device when detecting that cluster switching operation or flow head operation for a test task is triggered, the cluster calling request is sent to a second electronic device, so that the second electronic device determines a target cluster identifier of a target cluster for executing the test task in response to the cluster calling request, and the target cluster is called according to the target cluster identifier sent by the second electronic device, so that the target cluster executes the test task.
According to an embodiment of the present disclosure, the calling module 730 may include a calling submodule.
And the calling submodule is used for calling the target cluster according to the target cluster identifier sent by the second electronic equipment so that the target cluster accesses the database corresponding to the target cluster to execute the test task.
According to an embodiment of the present disclosure, the calling submodule may include a first calling unit and a second calling unit.
The first calling unit is used for calling the formal cluster corresponding to the formal cluster identifier under the condition that the target cluster identifier sent by the second electronic device is determined to be the formal cluster identifier, so that the formal cluster accesses the database corresponding to the formal cluster to execute the test task.
And the second calling unit is used for calling the gray cluster under the condition that the target cluster identifier sent by the second electronic equipment is determined to be the gray cluster identifier, so that the gray cluster accesses the target database to execute the test task, wherein the target database is a database corresponding to the formal cluster determined according to the gray cluster.
According to an embodiment of the present disclosure, the cluster invoking device 700 may further include an obtaining module, a determining module, a second sending module, and a verifying module.
The obtaining module is used for obtaining the first verification request.
A determination module to determine, in response to the first verification request, actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster.
And the second sending module is used for sending a second verification request to the second electronic device so that the second electronic device determines the expected configuration information of the cluster expected to be called in response to the second verification request, wherein the cluster expected to be called is the target cluster.
And the verification module is used for generating a verification result for representing the calling correctness of the cluster according to the actual configuration information, the comparison configuration information and the expected configuration information.
According to an embodiment of the present disclosure, a verification module may include a first generation unit, a second generation unit, and a third generation unit.
And the first generating unit is used for generating a first verification result for representing the correctness of the cluster calling according to the cluster information included by the expected configuration information and the actual configuration information.
And the second generating unit is used for generating a second verification result for representing the cluster calling correctness according to the database information and the application version information which are included in the comparison configuration information and the actual configuration information.
And the third generating unit is used for generating a verification result for representing the cluster calling correctness according to the first verification result and the second verification result.
According to an embodiment of the present disclosure, the determining module may include an obtaining unit.
The obtaining unit is used for responding to the first verification request and calling the verification interface to obtain the actual configuration information of the actually called cluster and the comparison configuration information associated with the actually called cluster.
According to an embodiment of the present disclosure, the target operation is a cluster switching operation.
According to an embodiment of the present disclosure, the generation module may include a fourth generation unit and a fifth generation unit.
And the fourth generating unit is used for generating the cluster switching information under the condition that the cluster switching operation is detected to be triggered.
And the fifth generating unit is used for generating the cluster calling request according to the cluster switching information.
According to an embodiment of the present disclosure, the flow header operation includes a page login operation, an asynchronous operation, or a message queue operation.
According to an embodiment of the present disclosure, the test tasks include test tasks for warehouse traffic.
Any number of modules, sub-modules, 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 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 according to the embodiments of the present disclosure 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 any other reasonable manner of hardware or firmware for 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 them. Alternatively, one or more of the modules, sub-modules, units according to embodiments of the disclosure may be implemented at least partly as computer program modules, which, when executed, may perform corresponding functions.
For example, any plurality of the generating module 710, the first sending module 720 and the calling module 730 may be combined and implemented in one module/sub-module/unit, or any one of the modules/sub-modules/units may be split into a plurality of modules/units. Alternatively, at least part of the functionality of one or more of these modules/sub-modules/units may be combined with at least part of the functionality of other modules/sub-modules/units and implemented in one module/sub-module/unit. According to an embodiment of the present disclosure, at least one of the generating module 710, the first sending module 720 and the invoking module 730 may be at least partially implemented 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 hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware and firmware implementations. Alternatively, at least one of the generating module 710, the first sending module 720 and the calling module 730 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 cluster calling device portion in the embodiment of the present disclosure corresponds to the cluster calling method portion in the embodiment of the present disclosure, and the description of the cluster calling device portion specifically refers to the cluster calling method portion, which is not described herein again.
Fig. 8 schematically shows a block diagram of a first electronic device adapted to implement the above described method according to an embodiment of the present disclosure. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, a first electronic device 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 first electronic apparatus 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.
According to an embodiment of the present disclosure, the first electronic device 800 may also include an input/output (I/O) interface 808, an input/output (I/O) interface 805 also connected to the bus 804. 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 portion 807 including a Display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), 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 preceding. 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.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being configured to cause the electronic device to implement the method of cluster calling provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 801, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via communication section 809, and/or installed from removable media 811. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any of a variety of Networks, including Local Area Networks (LANs) or Wide Area Networks (WANs), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
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 (13)

1. A cluster calling method is applied to a first electronic device which can be in communication connection with a second electronic device, and comprises the following steps:
generating a cluster calling request under the condition that target operation is triggered, wherein the target operation comprises cluster switching operation or flow head operation aiming at a test task;
sending the cluster calling request to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster calling request, wherein the target cluster identifier comprises a gray scale cluster identifier or a formal cluster identifier; and
and calling a target cluster according to the target cluster identifier sent by the second electronic equipment so that the target cluster executes the test task.
2. The method of claim 1, wherein the invoking a target cluster according to a target cluster identity sent by the second electronic device to cause the target cluster to perform the test task comprises:
and calling the target cluster according to the target cluster identifier sent by the second electronic equipment, so that the target cluster accesses a database corresponding to the target cluster to execute the test task.
3. The method of claim 2, wherein said invoking the target cluster according to a target cluster identification sent by the second electronic device to cause the target cluster to access a database corresponding to the target cluster to perform the test task comprises:
calling a formal cluster corresponding to the formal cluster identifier under the condition that the target cluster identifier sent by the second electronic device is determined to be the formal cluster identifier, so that the formal cluster accesses a database corresponding to the formal cluster to execute the test task; and
and in the case that the target cluster identifier sent by the second electronic device is determined to be the gray cluster identifier, calling the gray cluster to enable the gray cluster to access a target database to execute the test task, wherein the target database is a database corresponding to a formal cluster determined according to the gray cluster.
4. The method of any of claims 1-3, further comprising:
acquiring a first verification request;
determining, in response to the first validation request, actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster;
sending a second verification request to the second electronic device, so that the second electronic device determines expected configuration information of an expected called cluster in response to the second verification request, wherein the expected called cluster is the target cluster; and
and generating a verification result for representing the cluster calling correctness according to the actual configuration information, the comparison configuration information and the expected configuration information.
5. The method of claim 4, wherein generating a verification result for characterizing correctness of the cluster call according to the actual configuration information, the comparison configuration information, and the expected configuration information comprises:
generating a first verification result for representing the correctness of cluster calling according to the cluster information included in the expected configuration information and the actual configuration information;
generating a second verification result for representing the cluster calling correctness according to the database information and the application version information included in the comparison configuration information and the actual configuration information; and
and generating the verification result for representing the cluster calling correctness according to the first verification result and the second verification result.
6. The method of claim 4, wherein the determining, in response to the first validation request, actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster comprises:
in response to the first authentication request, an authentication interface is invoked to obtain actual configuration information of the actually invoked cluster and comparative configuration information associated with the actually invoked cluster.
7. A method according to any one of claims 1 to 3 wherein the target operation is a cluster switching operation;
the generating a cluster call request when detecting that the target operation is triggered includes:
generating cluster switching information under the condition that the cluster switching operation is triggered is detected; and
and generating the cluster calling request according to the cluster switching information.
8. The method of any of claims 1-3, wherein the flow header operation comprises a page login operation, an asynchronous operation, or a message queue operation.
9. A method according to any one of claims 1 to 3 wherein the test tasks include test tasks for warehouse traffic.
10. A cluster calling device is arranged on a first electronic device which can be in communication connection with a second electronic device, and the cluster calling device comprises:
the device comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating a cluster calling request under the condition that target operation is detected to be triggered, and the target operation comprises cluster switching operation or flow head operation aiming at a test task;
a first sending module, configured to send the cluster calling request to the second electronic device, so that the second electronic device determines a target cluster identifier in response to the cluster calling request, where the target cluster identifier includes a grayscale cluster identifier or a formal cluster identifier; and
and the calling module is used for calling the target cluster according to the target cluster identifier sent by the second electronic equipment so as to enable the target cluster to execute the test task.
11. A first electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-9.
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 9.
13. A computer program product comprising a computer program which, when executed by a processor, is adapted to carry out the method of any one of claims 1 to 9.
CN202110568614.XA 2021-05-24 2021-05-24 Cluster calling method, cluster calling device, electronic equipment and readable storage medium Active CN113296911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110568614.XA CN113296911B (en) 2021-05-24 2021-05-24 Cluster calling method, cluster calling device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110568614.XA CN113296911B (en) 2021-05-24 2021-05-24 Cluster calling method, cluster calling device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113296911A true CN113296911A (en) 2021-08-24
CN113296911B CN113296911B (en) 2023-09-22

Family

ID=77324547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110568614.XA Active CN113296911B (en) 2021-05-24 2021-05-24 Cluster calling method, cluster calling device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113296911B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835843A (en) * 2021-09-29 2021-12-24 平安养老保险股份有限公司 Fuzzy operation method and device of redis cluster, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128205A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Method and device for achieving grayscale publishing, computing node and system
CN110351134A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of server environment switching method, device and electronic equipment
CN110750289A (en) * 2019-10-25 2020-02-04 中电福富信息科技有限公司 Gray switching state maintaining method for distributed system
WO2020119426A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Gray scale testing method, server and computer readable storage medium
CN111679966A (en) * 2020-04-27 2020-09-18 五八有限公司 Gray scale distribution method, device, server and storage medium
CN111737128A (en) * 2020-06-19 2020-10-02 北京百度网讯科技有限公司 On-line testing method, gray level shunting equipment and storage medium
CN111756841A (en) * 2020-06-23 2020-10-09 中国平安财产保险股份有限公司 Service implementation method, device, equipment and storage medium based on micro-service cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128205A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Method and device for achieving grayscale publishing, computing node and system
WO2020119426A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Gray scale testing method, server and computer readable storage medium
CN110351134A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of server environment switching method, device and electronic equipment
CN110750289A (en) * 2019-10-25 2020-02-04 中电福富信息科技有限公司 Gray switching state maintaining method for distributed system
CN111679966A (en) * 2020-04-27 2020-09-18 五八有限公司 Gray scale distribution method, device, server and storage medium
CN111737128A (en) * 2020-06-19 2020-10-02 北京百度网讯科技有限公司 On-line testing method, gray level shunting equipment and storage medium
CN111756841A (en) * 2020-06-23 2020-10-09 中国平安财产保险股份有限公司 Service implementation method, device, equipment and storage medium based on micro-service cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘冬剑: "互联网应用灰度发布建设实践", 金融电子化 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835843A (en) * 2021-09-29 2021-12-24 平安养老保险股份有限公司 Fuzzy operation method and device of redis cluster, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113296911B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN110581855A (en) Application control method and device, electronic equipment and computer readable storage medium
CN109145590B (en) Function hook detection method, detection equipment and computer readable medium
CN112948900A (en) Method and device for acquiring data under link applied to block chain system
CN110688428B (en) Method and device for issuing intelligent contracts
CN110267215B (en) Data detection method, equipment and storage medium
CN112036558A (en) Model management method, electronic device, and medium
CN113468515A (en) User identity authentication method and device, electronic equipment and storage medium
CN110909355A (en) Unauthorized vulnerability detection method, system, electronic device and medium
CN108702334B (en) Method and system for distributed testing of network configuration for zero tariffs
CN115604144A (en) Test method and device, electronic equipment and storage medium
CN113132400B (en) Business processing method, device, computer system and storage medium
CN113296911B (en) Cluster calling method, cluster calling device, electronic equipment and readable storage medium
CN112953769B (en) Data transmission method, device, computer system and readable storage medium
CN107229565B (en) Test method and device
US7529181B2 (en) Method and apparatus for adaptive monitoring and management of distributed systems
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN115934378A (en) Service data processing method and device, electronic equipment and storage medium
CN114257632A (en) Disconnection reconnection method and device, electronic equipment and readable storage medium
CN114254301A (en) PaC-based security policy management method and device
CN113485930A (en) Business process verification method, device, computer system and readable storage medium
CN109815429B (en) Browser page closing processing method and device
CN111131369B (en) APP use condition transmission method and device, electronic equipment and storage medium
CN113127363A (en) Parameter adjusting method, parameter adjusting device, electronic device and readable storage medium
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
US20140201839A1 (en) Identification and alerting of network devices requiring special handling maintenance procedures

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