WO2019210580A1 - Access request processing method, apparatus, computer device, and storage medium - Google Patents

Access request processing method, apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2019210580A1
WO2019210580A1 PCT/CN2018/095684 CN2018095684W WO2019210580A1 WO 2019210580 A1 WO2019210580 A1 WO 2019210580A1 CN 2018095684 W CN2018095684 W CN 2018095684W WO 2019210580 A1 WO2019210580 A1 WO 2019210580A1
Authority
WO
WIPO (PCT)
Prior art keywords
cognos
cluster
target
access request
clusters
Prior art date
Application number
PCT/CN2018/095684
Other languages
French (fr)
Chinese (zh)
Inventor
杨勇
宋剑锋
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019210580A1 publication Critical patent/WO2019210580A1/en

Links

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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an access request processing method, apparatus, computer device, and storage medium.
  • Cognos is a data model that is service-oriented on top of the BI (Business Intelligence) core platform and is the only solution that delivers complete business intelligence capabilities from a single product and on a single, reliable architecture. It provides a seamlessly integrated solution for reporting, analysis, scorecards, dashboards, etc., by providing all system and data resources to simplify the way companies work with their employees.
  • BI Business Intelligence
  • the use of Cognos clusters in the industry is mostly local multi-machine deployment, and there are no multi-region large cluster deployment cases. The expansion capability of a local single cluster is limited, and it cannot meet the requirements of real-time handover of remote disaster recovery.
  • the main purpose of the present application is to provide an access request processing method, apparatus, computer device, and storage medium, which overcome the defect that the user cannot access data when the cluster is abnormal.
  • the present application provides an access request processing method, where the method is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions, and the method include:
  • the load balancing server receives the access request
  • the load balancing server sends the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
  • the application also provides an access request processing device, where the device is applied to an off-site multi-collusion cluster environment, and each Cognos cluster shares a data storage space, and the device includes:
  • a receiving unit configured to receive an access request
  • a determining unit configured to determine a target Cognos cluster in a plurality of different geographical regions of the Cognos cluster, where the target Cognos cluster is any one of the Cognos clusters in a normal state;
  • a sending unit configured to send the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
  • the application further provides a computer device comprising a memory and a processor, the memory storing computer readable instructions, the processor executing the computer readable instructions to implement the steps of any of the methods described above.
  • the present application also provides a computer non-transitory readable storage medium having stored thereon computer readable instructions that, when executed by a processor, implement the steps of any of the methods described above.
  • the access request processing method, device, computer device and storage medium provided in the application are applied to a remote multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions; the load balancing server receives Accessing the request; the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters of different regions, the target Cognos cluster is any one of the Cognos clusters in a normal state; the load balancing server uses the access Sending a request to the target Cognos cluster, so that the target Cognos cluster processes the access request, overcoming the defect that the user cannot access the data when the cluster is abnormal, and ensuring that each user's access request can be responded; avoiding the cluster There is a risk of data loss after the disaster occurs and the system is unavailable for a long time.
  • FIG. 1 is a schematic diagram of steps of an access request processing method in an embodiment of the present application.
  • step S2 is a schematic diagram of specific steps of step S2 in an embodiment of the present application.
  • FIG. 3 is a structural block diagram of an access request processing apparatus in an embodiment of the present application.
  • FIG. 4 is a block diagram showing the structure of a determining unit in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of steps of an access request processing method in another embodiment of the present application.
  • FIG. 6 is a structural block diagram of an access request processing apparatus in another embodiment of the present application.
  • FIG. 7 is a block diagram showing the workflow of an access request processing system in another embodiment of the present application.
  • FIG. 8 is a schematic block diagram showing the structure of a computer device according to an embodiment of the present application.
  • an access request processing method is provided in the embodiment of the present application.
  • the method is applied to an off-site multi- Cognos cluster environment.
  • Each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions.
  • each of the above-mentioned Cognos clusters provides services independently, and the running environment is completely the same.
  • Each Cognos cluster maps its IP address to the same load balancing server, that is, points multiple different Cognos clusters.
  • the same load balancing server enables the load balancing server to perform unified and balanced management on each Cognos cluster.
  • the load balancing server can load balance and then distribute the access request to one of the above Cognos clusters.
  • the load balancing server is mainly used to balance the load (work tasks) and distribute them to multiple clusters for execution, such as web server (web server), FTP server (communication protocol server), enterprise critical application server, and other mission-critical servers. All belong to the load balancing server, the F5 load balancing server (a specific product specification) used in this embodiment.
  • the running environments of the Cognos clusters are consistent, and are deployed in various areas.
  • the Cognos cluster is set to multiple, which is convenient for reducing the pressure of the Cognos cluster.
  • Each Cognos cluster is independent of each other. When any one of the Cognos clusters is abnormal, the Cognos clusters in other regions can still work normally, and will not affect the stability of the Cognos clusters in other regions. By deploying multiple places and achieving different activities, the pressure on a single Cognos cluster can be greatly reduced.
  • the monitoring process is configured on the above-mentioned Cognos cluster.
  • the monitoring process is used to monitor the status attribute of the Cognos cluster in which it is located, and determine whether the Cognos cluster is in a normal state.
  • an exception notification (such as mail or phone, etc.) is issued to the bound administrative user.
  • the above abnormal state including hardware exceptions, such as CPU, memory usage, etc., also includes software exceptions, such as operating system crashes.
  • the above access request processing method includes the following steps:
  • Step S1 The load balancing server receives the access request.
  • the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
  • Step S2 the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters in different regions, and the target Cognos cluster is any one of the Cognos clusters in a normal state;
  • the load balancing server sends a control signal to each of the above-mentioned Cognos clusters to detect whether the current Cognos cluster is abnormal through the monitoring process set on the Cognos cluster.
  • the Cognos cluster sends the detection result to the above.
  • the load balancing server after receiving the detection result, facilitates balancing management of the above Cognos cluster. For example, the load balancing server selects any one of the Cognos clusters in the normal state as a target Cognos cluster according to a preset manner.
  • the load balancing server can also disable the service port of the Cognos cluster in an abnormal state so that it is no longer served.
  • Step S3 The load balancing server sends the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
  • the load balancing server may send an access request to the target Cognos cluster to cause the target Cognos cluster to process the access request. Enables the user's access request to be responsive, easy to access to the data they want, and avoids the unavailability of the entire system.
  • step S2 it is detected whether each of the Cognos clusters is in a normal state, and the Cognos cluster in the normal state can be accessed, and one of the Cognos clusters in the normal state is selected as the target Cognos cluster according to a preset manner.
  • step S3 the received access request sent by the user through the network is distributed to one of the target Cognos clusters in a normal state.
  • the load balancing server will not distribute the user's access request to the abnormal cluster of the Cognos cluster. Because it is distributed to the Cognos cluster in the normal state, it can ensure that the user's access request is responded, and the data required by the user can be accessed to avoid the unavailability of the entire system.
  • a Cognos cluster is deployed in Shenzhen, Guangzhou, and Shanghai, and each Cognos cluster runs in a consistent environment.
  • the Cognos clusters in Shenzhen and Shanghai are detected.
  • the Cognos cluster selected in the final clusters in Shenzhen and Shanghai will be different. For example, if the default mode is random distribution, it can be in Shenzhen and Shanghai.
  • the step S3 after the load balancing server sends the access request to the target Cognos cluster to process the access request by the target Cognos cluster includes:
  • the load balancing server acquires that the target Cognos cluster is in an abnormal state
  • the access request is sent to any other Cognos cluster in a normal state.
  • any other Cognos cluster selected from the other Cognos clusters is used as the target Cognos cluster of the access request.
  • the load balancing server obtains that the target Cognos cluster is in an abnormal state
  • the service port of the target Cognos cluster in the abnormal state is disabled.
  • the target Cognos cluster service port when it is detected that the target Cognos cluster is in an abnormal state, the target Cognos cluster service port only needs to be disabled. After the service port is disabled, the load balancing server will not distribute the request, and the access request sent by the user will only be Send it to other normal Cognos clusters for processing.
  • the task of distributing the access request to the target Cognos cluster may also be disabled by the load balancing server such that the user's access request is no longer distributed to the target Cognos cluster. Both of the above methods can not continue to distribute requests on the Cognos cluster where the exception occurs, but distribute the request to other normal Cognos clusters; avoid data loss after the disaster occurs on the Cognos cluster, and the system is unavailable for a long time. risk.
  • step S2 it is determined that in the target Cognos cluster, if one of the Cognos clusters is detected to be in an abnormal state, the same manner can be performed as described above.
  • the repair tool when an abnormality occurs in a Cognos cluster, the repair tool is used to repair, or the Cognos cluster is automatically restarted.
  • the Cognos cluster service port is closed and set to be unavailable. status.
  • the Cognos cluster After the Cognos cluster returns to normal, the Cognos cluster automatically opens the service port, resumes use, and sends a signal to restore the normal state to the load balancing server to make a prompt.
  • the load balancing server can redistribute the access request to the On the Cognos cluster.
  • the step of the load balancing server receiving the access request further includes:
  • the foregoing manner of determining the target Cognos cluster is to select a Cognos cluster that is closest to the user address information.
  • the Cognos cluster that is closest to the user's address information and in a normal state is matched as the target Cognos cluster.
  • a Cognos cluster is deployed in three regions of Shenzhen, Guangzhou, and Shanghai, and the address information of the accessed users is Guangzhou. If the above three Cognos clusters are in a normal state, the Guangzhou Cognos cluster is automatically selected as the target Cognos cluster; if the Guangzhou Cognos cluster is in an abnormal state, the Shenzhen Cognos cluster is used as the target Cognos cluster.
  • a user address-cluster mapping table is further configured, and the mapping table stores a Cognos cluster list corresponding to the user address information, and the Cognos cluster included in the Cognos cluster list corresponding to the user address information may be
  • the corresponding list of Cognos clusters can be Guangzhou.
  • the corresponding list of Cognos clusters can include Guangzhou and Shenzhen.
  • the step S2 of determining, by the load balancing server, the target Cognos cluster in the plurality of different regions of the Cognos cluster includes:
  • Step S21 Matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
  • the Cognos cluster list corresponding to the user address information may be matched.
  • the list includes at least one Cognos cluster.
  • Step S22 Select a Cognos cluster in a normal state as the target Cognos cluster according to the matching result and the matched state of the Cognos cluster.
  • the matching Cognos cluster may be in an abnormal state. In this case, it is unreasonable to send the access request to the Cognos cluster. Therefore, it needs to be detected. Whether the matched Cognos cluster is in a normal state; finally, select a target Cognos cluster suitable for distributing access requests, which is the last Cognos cluster that needs to process access requests.
  • the matching result matched by the user address-cluster mapping table is a Cognos cluster
  • a Cognos cluster in a normal state is selected as the cluster.
  • Step S22 of the target Cognos cluster includes:
  • the matched Cognos cluster is selected as the target Cognos cluster.
  • the access request is then distributed to the target Cognos cluster; if the matched Cognos cluster is in an abnormal state, the access request is randomly distributed to any other Cognos cluster in a normal state. In other embodiments, if the matched Cognos cluster is in an abnormal state, the access request may be distributed to a Cognos cluster closest to the user's address, and the specific process is not described herein.
  • the matching result matched according to the foregoing user address-cluster mapping table includes multiple Cognos clusters, and includes priorities of multiple of the Cognos clusters; according to the matching result and the Cognos cluster Status, step S22 of selecting a Cognos cluster in a normal state as the target Cognos cluster, including:
  • a Cognos cluster with the highest priority and the highest priority is selected as the target Cognos cluster, and the intercepted access request is distributed to the target Cognos cluster.
  • the results of the matching Cognos cluster list may include multiple Cognos clusters, such as Cognos clusters A, B, and C, and the priority of the Cognos cluster A is higher than that of the Cognos cluster B.
  • the priority of the Cognos cluster B is higher than that of the Cognos cluster. C; If the Cognos cluster A is abnormal and the Cognos clusters B and C are normal, select Cognos cluster B as the target Cognos cluster.
  • the load balancing server periodically updates the user address-cluster mapping table.
  • the table then directly matches the result according to the user address-cluster mapping table and the user's address information, and uses the matched Cognos cluster or the matched highest priority Cognos cluster as the target Cognos cluster.
  • NAS Network
  • Attached Storage NAS is the shared data storage. All the Cognos clusters that have the NAS can access the data in the shared data storage space. It does not need to be stored in every Cognos cluster, which greatly saves storage resources. .
  • the above-mentioned target Cognos cluster generates a log file for processing data for the access request and transmits it to the shared data storage space.
  • the method Before the step S1 of receiving the access request by the load balancing server, the method includes:
  • step S11 the data in the shared data storage space is extracted into the cube file, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters.
  • This process ensures that the data on multiple sets of Cognos clusters is completely consistent.
  • Each Cognos cluster provides services to users at the same time, which greatly enhances system high availability and robustness.
  • the data on each Cognos cluster is the same, and even if one of the Cognos clusters is abnormal, other Cognos clusters can still provide services to improve system disaster tolerance.
  • a large amount of data is stored in the shared data storage space, and the data is extracted from the shared data storage space and loaded into the cube file, and the cube files that are extracted from the shared data storage space are simultaneously published to each Cognos.
  • Brushing the cube file is a special off-line analysis tool of Cognos, that is, the data cube.
  • the data is extracted from the shared data storage space and loaded into the cube file, and the user can query the required data by accessing the cube file on the NAS, and the process improves the data access when the large data volume and the user are concurrently accessed. effectiveness.
  • the extracting the data in the shared data storage space into the cube file and distributing the cube file to the NAS mounted on each of the Cognos clusters before the step S11 includes:
  • Step S101 Import data uploaded by any one of the Cognos clusters into a shared data storage space.
  • the load balancing server will be arbitrary.
  • the data uploaded on one of the Cognos clusters is imported into the shared data storage space.
  • the data in the shared data storage space is extracted into the cube file by the above step S11, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters. I will not repeat them here.
  • the embodiment of the present application further provides an access request processing device, where the device is applied to a remote multi- Cognos cluster environment, and each Cognos cluster shares a data storage space.
  • each of the foregoing Cognos clusters independently provides services, and The running environment is the same.
  • Each Cognos cluster maps its IP address to the same load balancing server. That is, multiple different Cognos clusters are directed to the same load balancing server, so that the load balancing server unifies each Cognos cluster.
  • Balance management When users everywhere access the load balancing server over the network, the load balancing server can load balance and then distribute the access request to one of the above Cognos clusters.
  • the load balancing server is mainly used to balance the load (work tasks) and distribute them to multiple clusters for execution, such as web server (web server), FTP server (communication protocol server), enterprise critical application server, and other mission-critical servers. All belong to the load balancing server, the F5 load balancing server (a specific product specification) used in this embodiment.
  • the running environments of the Cognos clusters are consistent, and are deployed in various areas.
  • the Cognos cluster is set to multiple, which is convenient for reducing the pressure of the Cognos cluster.
  • Each Cognos cluster is independent of each other. When any one of the Cognos clusters is abnormal, the Cognos clusters in other regions can still work normally, and will not affect the stability of the Cognos clusters in other regions. By deploying multiple places and achieving different activities, the pressure on a single Cognos cluster can be greatly reduced.
  • the monitoring process is configured on the above-mentioned Cognos cluster.
  • the monitoring process is used to monitor the status attribute of the Cognos cluster in which it is located, and determine whether the Cognos cluster is in a normal state.
  • an exception notification (such as mail or phone, etc.) is issued to the bound administrative user.
  • the above abnormal state including hardware exceptions, such as CPU, memory usage, etc., also includes software exceptions, such as operating system crashes.
  • the above access request processing apparatus includes:
  • the receiving unit 10 is configured to receive an access request.
  • the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
  • the determining unit 20 is configured to determine a target Cognos cluster in a plurality of different regions of the Cognos cluster, where the target Cognos cluster is any one of the Cognos clusters in a normal state.
  • the determining unit 20 sends a control signal to each of the above-mentioned Cognos clusters, and detects whether the current Cognos cluster is abnormal through the monitoring process set on the Cognos cluster, and the above-mentioned Cognos cluster detects
  • the result is sent to the determining unit 20, and after the determining unit 20 receives the detection result, it is convenient to perform balancing management on the Cognos cluster.
  • the determining unit 20 selects any one of the Cognos clusters in the normal state as a target Cognos cluster in a preset manner. In this process, the determining unit 20 can also disable the service port of the Cognos cluster in an abnormal state so that it no longer provides services.
  • the sending unit 30 is configured to send the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
  • the sending unit 30 may send an access request to the target Cognos cluster to cause the target Cognos cluster to process the access request. Enables the user's access request to be responsive, easy to access to the data they want, and avoids the unavailability of the entire system.
  • the Cognos cluster representation in the normal state can be accessed, and the determining unit 20 selects one of the Cognos clusters in the normal state as the target Cognos cluster according to a preset manner.
  • the convenient sending unit 30 distributes the received access request sent by the user through the network to one of the target Cognos clusters in a normal state. In this embodiment, when any one of the Cognos clusters has an abnormal state, the sending unit 30 will not distribute the user's access request to the Cognos cluster of the abnormal state. Because it is distributed to the Cognos cluster in the normal state, it can ensure that the user's access request is responded, and the data required by the user can be accessed to avoid the unavailability of the entire system.
  • a Cognos cluster is deployed in Shenzhen, Guangzhou, and Shanghai, and each Cognos cluster runs in a consistent environment.
  • the Cognos clusters in Shenzhen and Shanghai are detected.
  • the Cognos cluster selected in the final clusters in Shenzhen and Shanghai will be different. For example, if the default mode is random distribution, it can be in Shenzhen and Shanghai.
  • the access request processing apparatus further includes:
  • a forwarding unit configured to send the access request to any other Cognos cluster in a normal state when the target Cognos cluster is in an abnormal state.
  • any other Cognos cluster selected from the other Cognos clusters is used as the target Cognos cluster of the access request.
  • the load balancing server obtains that the target Cognos cluster is in an abnormal state
  • the service port of the target Cognos cluster in the abnormal state is disabled.
  • the target Cognos cluster service port when it is detected that the target Cognos cluster is in an abnormal state, the target Cognos cluster service port only needs to be disabled. After the service port is disabled, the sending unit 30 will not distribute the request, and the access request sent by the user will only be Send it to other normal Cognos clusters for processing.
  • the task of distributing the access request to the target Cognos cluster may also be disabled by the load balancing server such that the user's access request is no longer distributed to the target Cognos cluster. Both of the above methods can not continue to distribute requests on the Cognos cluster where the exception occurs, but distribute the request to other normal Cognos clusters; avoid data loss after the disaster occurs on the Cognos cluster, and the system is unavailable for a long time. risk.
  • the determining unit 20 determines that the target Cognos cluster is in an abnormal state, it can also be processed in the above manner.
  • the repair tool when an abnormality occurs in a Cognos cluster, the repair tool is used to repair, or the Cognos cluster is automatically restarted.
  • the Cognos cluster service port is closed and set to be unavailable. status.
  • the Cognos cluster After the Cognos cluster returns to normal, the Cognos cluster automatically opens the service port, resumes use, and sends a signal to restore the normal state to the load balancing server to make a prompt.
  • the load balancing server can redistribute the access request to the On the Cognos cluster.
  • the obtaining unit 10 further acquires address information of the user; and cooperates with the off-site distribution analysis tool on the load balancing server to analyze the address information of the accessed user.
  • the determining unit 20 determines that the target Cognos cluster is preset by selecting a Cognos cluster that is closest to the user address information.
  • the determining unit 20 is specifically configured to:
  • the Cognos cluster that is closest to the user's address information and in a normal state is matched as the target Cognos cluster.
  • a Cognos cluster is deployed in three regions of Shenzhen, Guangzhou, and Shanghai, and the address information of the accessed users is Guangzhou. If the above three Cognos clusters are in a normal state, the Guangzhou Cognos cluster is automatically selected as the target Cognos cluster; if the Guangzhou Cognos cluster is in an abnormal state, the Shenzhen Cognos cluster is used as the target Cognos cluster.
  • a user address-cluster mapping table is further configured, and the mapping table stores a list of Cognos clusters corresponding to the user address information, and the Cognos cluster included in the Cognos cluster list corresponding to the user address information may be For example, for users in Guangzhou, the corresponding list of Cognos clusters can be Guangzhou. For users in Dongguan, the corresponding list of Cognos clusters can include Guangzhou and Shenzhen.
  • the determining unit 20 includes:
  • the matching sub-unit 201 is configured to match, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
  • the matching sub-unit 201 can match the Cognos cluster list corresponding to the user address information.
  • the list includes at least one Cognos cluster.
  • the selecting sub-unit 202 is configured to select a Cognos cluster in a normal state as the target Cognos cluster according to the matching result and the matched state of the Cognos cluster.
  • the matching sub-unit 201 After the matching sub-unit 201 matches the Cognos cluster in the user address-cluster mapping table, the matching Cognos cluster may be in an abnormal state. In this case, it is unreasonable to send the access request to the Cognos cluster. It is also necessary to detect whether the matched Cognos cluster is in a normal state; finally, the selection sub-unit 202 selects a target Cognos cluster suitable for distributing the access request, which is the last Cognos cluster that needs to process the access request.
  • the matching sub-unit 201 is a Cognos cluster according to the matching result matched by the user address-cluster mapping table, and the selecting sub-unit 202 is specifically used to:
  • the matched Cognos cluster is selected as the target Cognos cluster.
  • the access request is then distributed to the target Cognos cluster; if the matched Cognos cluster is in an abnormal state, the access request is randomly distributed to any other Cognos cluster in a normal state. In other embodiments, if the matched Cognos cluster is in an abnormal state, the access request may be distributed to a Cognos cluster closest to the user's address, and the specific process is not described herein.
  • the matching sub-unit 201 includes a plurality of Cognos clusters according to the matching result matched by the user address-cluster mapping table, and includes a plurality of priorities of the Cognos cluster; the selecting sub-unit 202 is specific. Used for:
  • a Cognos cluster with the highest priority and the highest priority is selected as the target Cognos cluster, and the intercepted access request is distributed to the target Cognos cluster.
  • the results of the Cognos cluster list matched by the matching sub-unit 201 may include multiple Cognos clusters, such as Cognos clusters A, B, and C, and the priority of the Cognos cluster A is higher than that of the Cognos cluster B, and the priority of the Cognos cluster B is If the Cognos cluster A is abnormal and the Cognos clusters B and C are normal, the selection sub-unit 202 selects Cognos cluster B as the target Cognos cluster.
  • the method further includes an update unit that periodically updates the user address-cluster mapping table.
  • the table then directly matches the result according to the user address-cluster mapping table and the user's address information, and uses the matched Cognos cluster or the matched highest priority Cognos cluster as the target Cognos cluster.
  • NAS Network
  • Attached Storage NAS is a shared data storage. All Cognos clusters that have the NAS can access the data in the shared data storage space. No storage is required for each Cognos cluster, which greatly saves storage resources. .
  • the above-mentioned target Cognos cluster generates a log file for the processing data of the access request, and sends it to the shared data storage space.
  • the access request processing device further includes:
  • a synchronization unit configured to extract data in the shared data storage space into the cube file, and synchronously distribute the cube file to the NAS mounted on each of the Cognos clusters. This process ensures that the data on multiple sets of Cognos clusters is completely consistent.
  • Each Cognos cluster provides services to users at the same time, which greatly enhances system high availability and robustness.
  • the data on each Cognos cluster is the same, and even if one of the Cognos clusters is abnormal, other Cognos clusters can still provide services to improve system disaster tolerance.
  • a large amount of data is stored in the shared data storage space, and the synchronization unit extracts and loads the data from the shared data storage space into the cube file, and simultaneously publishes the cube file that is extracted from the shared data storage space to the cube file.
  • the synchronization unit extracts and loads the data from the shared data storage space into the cube file, and simultaneously publishes the cube file that is extracted from the shared data storage space to the cube file.
  • Brushing the cube file is a special off-line analysis tool of Cognos, that is, the data cube.
  • the synchronization unit extracts data from the shared data storage space and loads it into the cube file, and the user can query the required data by accessing the cube file on the NAS, and the process improves the amount of large data and the concurrent access of the user. Data access efficiency.
  • the access request processing apparatus further includes:
  • the import unit is configured to import data uploaded on any one of the Cognos clusters into a shared data storage space.
  • the load balancing server will be arbitrary.
  • the data uploaded on one of the Cognos clusters is imported into the shared data storage space.
  • the data in the shared data storage space is extracted into the cube file by the above step S11, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters. I will not repeat them here.
  • an embodiment of the present application further provides an access request processing method, where the method is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster.
  • the Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
  • the access request processing method includes:
  • Step S201 the target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
  • the user's access request is sent to the load balancing server, and the load balancing server selects a target Cognos cluster.
  • the target Cognos cluster is a Cognos cluster that is in a normal state in any of the Cognos clusters in each region.
  • the load balancing server determines the target Cognos cluster in the managed Cognos clusters in multiple regions, it sends the received access request to the Cognos cluster, and the target Cognos cluster receives the access request sent by the load balancing server.
  • Step S202 the target Cognos cluster processes the access request.
  • the target Cognos cluster after receiving the access request, processes the access request.
  • the target Cognos cluster then generates a log file from the access request processing data and sends the log file to the shared data storage space.
  • an embodiment of the present application further provides an access request processing device, where the device is applied to an off-site multiple Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster.
  • the Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
  • the access request processing apparatus includes:
  • the receiving module 101 is configured to receive an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
  • the user's access request is sent to the load balancing server, which then selects a target Cognos cluster.
  • the target Cognos cluster is a Cognos cluster that is in a normal state in any of the Cognos clusters in each region.
  • the load balancing server determines the target Cognos cluster in the coordinated clusters of the multiple regions, the access request received by the load balancing server is sent to the Cognos cluster, and the receiving module 101 on the target Cognos cluster receives the sent by the load balancing server. Access request.
  • the processing module 102 is configured to process the access request.
  • the processing module 102 processes the access request. Then, the processing module 102 generates a log file by the access request processing data, and sends the log file to the shared data storage space.
  • an embodiment of the present application further provides an access request processing system, where the system is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster.
  • the Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
  • the load balancing server receives the access request; after the Cognos cluster and the load balancing server are deployed, the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
  • the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters in different regions, and the target Cognos cluster is any one of the Cognos clusters in a normal state.
  • the process of determining the target Cognos cluster by the load balancing server refers to the specific implementations of step S2, step S21, and step S22 in the foregoing method embodiment, and details are not described herein.
  • the load balancing server sends the access request to the target Cognos cluster; the load balancing server determines the target Cognos cluster from the managed Cognos clusters of different regions, and sends the received access request to the target Cognos. Cluster.
  • the target Cognos cluster receives the access request and processes the access request.
  • the access request processing data generates a log file, and the log file is sent to the shared data storage space.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 8.
  • the computer device includes a processor, memory, network interface, and shared data storage space connected by a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a shared data storage space.
  • the internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the shared data storage space of the computer device is used to store data such as reports.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer readable instructions are executed by the processor to implement an access request processing method, and the method is applied to an off-site multi- Cognos cluster environment, and each Cognos cluster shares a data storage space.
  • the above processor executes the steps of the above access request processing method:
  • Target Cognos cluster Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
  • the access request carries the address information of the user
  • the step of determining, by the processor, the target Cognos cluster in the coordinated clusters of the multiple different regions including:
  • a Cognos cluster in a normal state is selected as the target Cognos cluster.
  • the method includes:
  • the access request is sent to any other Cognos cluster in a normal state.
  • the method further includes:
  • the processor performs the steps of another access request processing method:
  • the target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
  • the target Cognos cluster processes the access request.
  • the method includes:
  • the target Cognos cluster generates a log file by the access request processing data, and sends the log file to the shared data storage space.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the present application is applied.
  • An embodiment of the present application further provides a computer non-transparent readable storage medium, where computer readable instructions are stored, and when the computer readable instructions are executed by the processor, an access request processing method is implemented, specifically:
  • Target Cognos cluster Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
  • the access request carries the address information of the user
  • the step of determining, by the processor, the target Cognos cluster in the coordinated clusters of the multiple different regions including:
  • a Cognos cluster in a normal state is selected as the target Cognos cluster.
  • the method includes:
  • the access request is sent to any other Cognos cluster in a normal state.
  • the method further includes:
  • the computer readable instructions are executed by the processor to implement another access request processing method, specifically:
  • the target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
  • the target Cognos cluster processes the access request.
  • the method includes:
  • the target Cognos cluster generates a log file by the access request processing data, and sends the log file to the shared data storage space.
  • the access request processing method, device, system, computer device, and storage medium provided in the embodiments of the present application are applied to an off-site multiple Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server receives an access request.
  • the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters of different regions, the target Cognos cluster is any one of the Cognos clusters in a normal state; the load balancing server sends the access request Giving the target Cognos cluster to the target Cognos cluster to process the access request, overcoming the defect that the user cannot access the data when the Cognos cluster is abnormal, and ensuring that each user's access request can be responded; avoiding the Cognos cluster There is a risk of data loss after the disaster occurs and the system is unavailable for a long time.

Abstract

An access request processing method, an apparatus, a computer device, and a storage medium, which are applied to a remote multi-Cognos cluster environment, wherein each Cognos cluster shares a data storage space, and a load balancing server manages the Cognos clusters of a plurality of different regions. The processing method comprises the following steps: a load balancing server receiving an access request (S1); the load balancing server determining a target Cognos cluster from among managed Cognos clusters of a plurality of different regions, the target Cognos cluster being any Cognos cluster among the Cognos clusters that are in a normal state (S2); the load balancing server sending the access request to the target Cognos cluster such that the target Cognos cluster processes the access request (S3). The present invention overcomes the defect wherein a user is unable to access data when a cluster is abnormal.

Description

访问请求处理方法、装置、计算机设备和存储介质Access request processing method, device, computer device, and storage medium
本申请要求于2018年5月4日提交中国专利局、申请号为2018104215528,发明名称为“访问请求处理方法、装置、系统、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 2018104215528, entitled "Access Request Processing Method, Apparatus, System, Computer Equipment, and Storage Media", filed on May 4, 2018, the entire contents of which is incorporated herein by reference. This is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别涉及一种访问请求处理方法、装置、计算机设备和存储介质。The present application relates to the field of computer technologies, and in particular, to an access request processing method, apparatus, computer device, and storage medium.
背景技术Background technique
Cognos是在BI(商业智能)核心平台之上,以服务为导向进行架构的一种数据模型,是唯一可以通过单一产品和在单一可靠架构上提供完整业务智能功能的解决方案。它可以提供无缝密合的报表、分析、记分卡、仪表盘等解决方案,通过提供所有的系统和资料资源,以简化公司各员工处理资讯的方法。目前业内对Cognos集群的使用多为本地多机部署,无多地区大集群部署案例。而本地单个集群的扩展能力有限,同时也无法满足异地容灾实时切换的要求。Cognos is a data model that is service-oriented on top of the BI (Business Intelligence) core platform and is the only solution that delivers complete business intelligence capabilities from a single product and on a single, reliable architecture. It provides a seamlessly integrated solution for reporting, analysis, scorecards, dashboards, etc., by providing all system and data resources to simplify the way companies work with their employees. At present, the use of Cognos clusters in the industry is mostly local multi-machine deployment, and there are no multi-region large cluster deployment cases. The expansion capability of a local single cluster is limited, and it cannot meet the requirements of real-time handover of remote disaster recovery.
随着集群的增大,Cognos集群会存在压力瓶颈,导致系统引发各种异常。系统异常后需要对集群环境进行重启操作,重启过程需要较长时间完成,在此过程中集群会处于不可用状态。灾难发生后存在数据丢失,系统长时间不可用的风险,容灾能力差;集群不可用时,造成用户无法访问数据,系统对用户的访问请求无法作出回应。As the cluster grows, there will be pressure bottlenecks in the Cognos cluster, causing various anomalies in the system. After the system is abnormal, you need to restart the cluster environment. The restart process takes a long time to complete. During this process, the cluster is unavailable. After the disaster occurs, there is data loss, the system is not available for a long time, and the disaster tolerance is poor. When the cluster is unavailable, the user cannot access the data, and the system cannot respond to the user's access request.
技术问题technical problem
本申请的主要目的为提供一种访问请求处理方法、装置、计算机设备和存储介质,克服集群异常时用户无法访问数据的缺陷。The main purpose of the present application is to provide an access request processing method, apparatus, computer device, and storage medium, which overcome the defect that the user cannot access data when the cluster is abnormal.
技术解决方案Technical solution
为实现上述目的,本申请提供了一种访问请求处理方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群,所述方法包括:To achieve the above object, the present application provides an access request processing method, where the method is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions, and the method include:
负载均衡服务器接收访问请求;The load balancing server receives the access request;
所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining, by the load balancing server, a target Cognos cluster in a plurality of Cognos clusters in different regions, where the target Cognos cluster is any one of the Cognos clusters in a normal state;
所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。The load balancing server sends the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
本申请还提供了一种访问请求处理装置,所述装置应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,所述装置包括:The application also provides an access request processing device, where the device is applied to an off-site multi-collusion cluster environment, and each Cognos cluster shares a data storage space, and the device includes:
接收单元,用于接收访问请求;a receiving unit, configured to receive an access request;
确定单元,用于在多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;a determining unit, configured to determine a target Cognos cluster in a plurality of different geographical regions of the Cognos cluster, where the target Cognos cluster is any one of the Cognos clusters in a normal state;
发送单元,用于将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。And a sending unit, configured to send the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述任一项所述方法的步骤。The application further provides a computer device comprising a memory and a processor, the memory storing computer readable instructions, the processor executing the computer readable instructions to implement the steps of any of the methods described above.
本申请还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一项所述的方法的步骤。The present application also provides a computer non-transitory readable storage medium having stored thereon computer readable instructions that, when executed by a processor, implement the steps of any of the methods described above.
有益效果Beneficial effect
本申请中提供的访问请求处理方法、装置、计算机设备和存储介质,应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群;负载均衡服务器接收访问请求;所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理,克服集群异常时用户无法访问数据的缺陷,保障每一次用户的访问请求都能得到回应;避免了集群上发生灾难后存在数据丢失,系统长时间不可用的风险。The access request processing method, device, computer device and storage medium provided in the application are applied to a remote multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions; the load balancing server receives Accessing the request; the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters of different regions, the target Cognos cluster is any one of the Cognos clusters in a normal state; the load balancing server uses the access Sending a request to the target Cognos cluster, so that the target Cognos cluster processes the access request, overcoming the defect that the user cannot access the data when the cluster is abnormal, and ensuring that each user's access request can be responded; avoiding the cluster There is a risk of data loss after the disaster occurs and the system is unavailable for a long time.
附图说明DRAWINGS
图1 是本申请一实施例中访问请求处理方法步骤示意图;1 is a schematic diagram of steps of an access request processing method in an embodiment of the present application;
图2 是本申请一实施例中的步骤S2的具体步骤示意图;2 is a schematic diagram of specific steps of step S2 in an embodiment of the present application;
图3 是本申请一实施例中访问请求处理装置结构框图;3 is a structural block diagram of an access request processing apparatus in an embodiment of the present application;
图4 是本申请一实施例中的确定单元结构框图;4 is a block diagram showing the structure of a determining unit in an embodiment of the present application;
图5 是本申请另一实施例中访问请求处理方法步骤示意图;FIG. 5 is a schematic diagram of steps of an access request processing method in another embodiment of the present application; FIG.
图6 是本申请另一实施例中访问请求处理装置结构框图;6 is a structural block diagram of an access request processing apparatus in another embodiment of the present application;
图7 是本申请另一实施例中访问请求处理系统的工作流程框图;7 is a block diagram showing the workflow of an access request processing system in another embodiment of the present application;
图8 为本申请一实施例的计算机设备的结构示意框图。FIG. 8 is a schematic block diagram showing the structure of a computer device according to an embodiment of the present application.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
参照图1,本申请实施例中提供了一种访问请求处理方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群。在本实施例中,上述各个Cognos集群均独立提供服务,且其运行环境完全一致,每个Cognos集群均将其IP地址映射到同一个负载均衡服务器中,即是将多个不同的Cognos集群指向同一个负载均衡服务器,使得负载均衡服务器对各个Cognos集群进行统一均衡管理。各地的用户通过网络访问到负载均衡服务器时,负载均衡服务器可以进行负载均衡,然后分发访问请求至一个上述Cognos集群上。负载均衡服务器主要用于将负载(工作任务)进行平衡、分摊到多个集群上进行执行,例如Web服务器(网站服务器)、FTP服务器(通讯协议服务器)、企业关键应用服务器和其它关键任务服务器等均属于负载均衡服务器,本实施例中使用的F5负载均衡服务器(一种具体产品规格)。Referring to FIG. 1 , an access request processing method is provided in the embodiment of the present application. The method is applied to an off-site multi- Cognos cluster environment. Each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions. In this embodiment, each of the above-mentioned Cognos clusters provides services independently, and the running environment is completely the same. Each Cognos cluster maps its IP address to the same load balancing server, that is, points multiple different Cognos clusters. The same load balancing server enables the load balancing server to perform unified and balanced management on each Cognos cluster. When users everywhere access the load balancing server over the network, the load balancing server can load balance and then distribute the access request to one of the above Cognos clusters. The load balancing server is mainly used to balance the load (work tasks) and distribute them to multiple clusters for execution, such as web server (web server), FTP server (communication protocol server), enterprise critical application server, and other mission-critical servers. All belong to the load balancing server, the F5 load balancing server (a specific product specification) used in this embodiment.
本实施例中,各地Cognos集群的运行环境一致,且部署在各个地域,Cognos集群设置为多个,便于降低Cognos集群的压力。每个Cognos集群相互独立,其中任一个Cognos集群出现异常时,其它地域的Cognos集群依然可以正常工作,均不会影响到其它地域的Cognos集群的稳定性。通过多地部署,实现异地多活,可以极大的降低单个Cognos集群的压力。In this embodiment, the running environments of the Cognos clusters are consistent, and are deployed in various areas. The Cognos cluster is set to multiple, which is convenient for reducing the pressure of the Cognos cluster. Each Cognos cluster is independent of each other. When any one of the Cognos clusters is abnormal, the Cognos clusters in other regions can still work normally, and will not affect the stability of the Cognos clusters in other regions. By deploying multiple places and achieving different activities, the pressure on a single Cognos cluster can be greatly reduced.
上述Cognos集群上均设置有监控进程,该监控进程用于监控其所在的Cognos集群的状态属性,判断Cognos集群是否处于正常状态。当异常状态发生时,发出异常通知(例如邮件或者电话等)至绑定的管理用户。上述异常状态,包括硬件异常,例如CPU、内存占用过高等,还包括软件异常,例如操作系统崩溃等。The monitoring process is configured on the above-mentioned Cognos cluster. The monitoring process is used to monitor the status attribute of the Cognos cluster in which it is located, and determine whether the Cognos cluster is in a normal state. When an abnormal state occurs, an exception notification (such as mail or phone, etc.) is issued to the bound administrative user. The above abnormal state, including hardware exceptions, such as CPU, memory usage, etc., also includes software exceptions, such as operating system crashes.
上述访问请求处理方法包括以下步骤:The above access request processing method includes the following steps:
步骤S1,负载均衡服务器接收访问请求;Step S1: The load balancing server receives the access request.
上述Cognos集群以及负载均衡服务器部署好之后(组成一个系统),负载均衡服务器在运行时,则可以接收用户的访问请求,该访问请求为用户对Cognos集群的数据访问请求。After the above-mentioned Cognos cluster and the load balancing server are deployed (constituting a system), the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
步骤S2,所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Step S2, the load balancing server determines a target Cognos cluster in a plurality of Cognos clusters in different regions, and the target Cognos cluster is any one of the Cognos clusters in a normal state;
在本步骤中,负载均衡服务器接收到访问请求之后,则发出控制信号至每个上述Cognos集群上,通过Cognos集群上设置的监控进程检测当前Cognos集群是否异常,上述Cognos集群将检测结果发送至上述负载均衡服务器,负载均衡服务器接收到检测结果之后,便于对上述Cognos集群进行均衡管理。例如,负载均衡服务器从处于正常状态的Cognos集群中按照预设方式选择任意一个作为目标Cognos集群。负载均衡服务器还可以禁用处于异常状态的所述Cognos集群的服务端口,使其不再提供服务。In this step, after receiving the access request, the load balancing server sends a control signal to each of the above-mentioned Cognos clusters to detect whether the current Cognos cluster is abnormal through the monitoring process set on the Cognos cluster. The Cognos cluster sends the detection result to the above. The load balancing server, after receiving the detection result, facilitates balancing management of the above Cognos cluster. For example, the load balancing server selects any one of the Cognos clusters in the normal state as a target Cognos cluster according to a preset manner. The load balancing server can also disable the service port of the Cognos cluster in an abnormal state so that it is no longer served.
步骤S3,所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。Step S3: The load balancing server sends the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
在确定目标Cognos集群之后,负载均衡服务器则可以将访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。使得用户的访问请求能够得到响应,便于访问到其想要的数据,避免整个系统发生不可用的情况。After determining the target Cognos cluster, the load balancing server may send an access request to the target Cognos cluster to cause the target Cognos cluster to process the access request. Enables the user's access request to be responsive, easy to access to the data they want, and avoids the unavailability of the entire system.
上述步骤S2中,检测出每一个Cognos集群是否处于正常状态,处于正常状态的Cognos集群表示可以被访问,按照预设方式从处于正常状态的Cognos集群中选择出一个作为目标Cognos集群。便于步骤S3中,将接收到的用户通过网络发送过来的访问请求分发至其中一个处于正常状态的所述目标Cognos集群上。本实施例中,其中任意一个Cognos集群出现异常状态时,负载均衡服务器将不会将用户的访问请求分发至该异常状态的Cognos集群上。由于是分发至处于正常状态的Cognos集群上,所以可以保障用户的访问请求得到回应,可以访问到用户需要的数据,避免整个系统发生不可用的情况。In the foregoing step S2, it is detected whether each of the Cognos clusters is in a normal state, and the Cognos cluster in the normal state can be accessed, and one of the Cognos clusters in the normal state is selected as the target Cognos cluster according to a preset manner. In step S3, the received access request sent by the user through the network is distributed to one of the target Cognos clusters in a normal state. In this embodiment, when any one of the Cognos clusters has an abnormal state, the load balancing server will not distribute the user's access request to the abnormal cluster of the Cognos cluster. Because it is distributed to the Cognos cluster in the normal state, it can ensure that the user's access request is responded, and the data required by the user can be accessed to avoid the unavailability of the entire system.
具体地,在一具体实施例中,在深圳、广州、上海均部署有一个Cognos集群,且每个Cognos集群运行环境一致,当检测到广州的Cognos集群出现异常状态,而深圳和上海的Cognos集群处于正常状态,则接收到用户的访问请求时,可以选择将访问请求分发至深圳或者上海其中任意一个Cognos集群上。而根据确定目标Cognos集群的预设方式不同,最后在深圳以及上海两地的Cognos集群之中选择的Cognos集群会有所不同,例如若预设方式为随机分发,则可以在深圳以及上海两地的Cognos集群之中随机选择一个Cognos集群;若预设方式为选择与用户的地址信息最近的Cognos集群,则从深圳以及上海两地的Cognos集群之中选择一个距离用户地址最近的一个Cognos集群。Specifically, in a specific embodiment, a Cognos cluster is deployed in Shenzhen, Guangzhou, and Shanghai, and each Cognos cluster runs in a consistent environment. When an abnormal state of the Cognos cluster in Guangzhou is detected, the Cognos clusters in Shenzhen and Shanghai are detected. In the normal state, when receiving a user's access request, you can choose to distribute the access request to any of the clusters in Shenzhen or Shanghai. According to the preset method of determining the target Cognos cluster, the Cognos cluster selected in the final clusters in Shenzhen and Shanghai will be different. For example, if the default mode is random distribution, it can be in Shenzhen and Shanghai. Select a Cognos cluster randomly among the Cognos clusters; if the default method is to select the Cognos cluster closest to the user's address information, select a Cognos cluster closest to the user's address from the Cognos clusters in Shenzhen and Shanghai.
在一实施例中,上述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤S3之后,包括:In an embodiment, the step S3 after the load balancing server sends the access request to the target Cognos cluster to process the access request by the target Cognos cluster includes:
所述负载均衡服务器获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the load balancing server acquires that the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
若所述目标Cognos集群处于异常状态,为了避免用户的访问请求得不到响应,则从其它的Cognos集群中选择出任意一个处于正常状态的Cognos集群作为上述访问请求的目标Cognos集群。If the target Cognos cluster is in an abnormal state, in order to prevent the user's access request from being unresponsive, any other Cognos cluster selected from the other Cognos clusters is used as the target Cognos cluster of the access request.
负载均衡服务器获取到所述目标Cognos集群处于异常状态时,则禁用处于异常状态的所述目标Cognos集群的服务端口。When the load balancing server obtains that the target Cognos cluster is in an abnormal state, the service port of the target Cognos cluster in the abnormal state is disabled.
本实施例中,当检测到目标Cognos集群处于异常状态时,只需将该目标Cognos集群服务端口禁用,上述服务端口禁用之后,负载均衡服务器将不再分发请求,用户发送的访问请求就只会发往其它正常Cognos集群中进行处理。在另一实施例中,还可以通过禁用负载均衡服务器对该目标Cognos集群的分发访问请求的任务,以使得不再分发用户的访问请求至该目标Cognos集群上。上述两种方式均可以实现不再继续在发生异常的Cognos集群上分发请求,而将请求分发至其它正常的Cognos集群上;避免了Cognos集群上发生灾难后存在数据丢失,系统长时间不可用的风险。在上述步骤S2中确定目标Cognos集群中,若检测到其中一个Cognos集群处于异常状态时,同样可以按照上述方式进行处理。In this embodiment, when it is detected that the target Cognos cluster is in an abnormal state, the target Cognos cluster service port only needs to be disabled. After the service port is disabled, the load balancing server will not distribute the request, and the access request sent by the user will only be Send it to other normal Cognos clusters for processing. In another embodiment, the task of distributing the access request to the target Cognos cluster may also be disabled by the load balancing server such that the user's access request is no longer distributed to the target Cognos cluster. Both of the above methods can not continue to distribute requests on the Cognos cluster where the exception occurs, but distribute the request to other normal Cognos clusters; avoid data loss after the disaster occurs on the Cognos cluster, and the system is unavailable for a long time. risk. In the above step S2, it is determined that in the target Cognos cluster, if one of the Cognos clusters is detected to be in an abnormal state, the same manner can be performed as described above.
优选地,在一实施例中,检测到某个Cognos集群出现异常时,利用修复工具进行修复,或者自动对该Cognos集群进行重启,重启过程中,将该Cognos集群服务端口关闭,设置为不可用状态。Cognos集群恢复正常后,该Cognos集群自动打开服务端口,恢复使用,并发送一个恢复正常状态的信号至负载均衡服务器以作出提示,负载均衡服务器接收到上述信号后,则可以重新分发访问请求至该Cognos集群上。Preferably, in an embodiment, when an abnormality occurs in a Cognos cluster, the repair tool is used to repair, or the Cognos cluster is automatically restarted. During the restart, the Cognos cluster service port is closed and set to be unavailable. status. After the Cognos cluster returns to normal, the Cognos cluster automatically opens the service port, resumes use, and sends a signal to restore the normal state to the load balancing server to make a prompt. After receiving the above signal, the load balancing server can redistribute the access request to the On the Cognos cluster.
在一实施例中,上述步骤S1中,负载均衡服务器接收访问请求的步骤,还包括:In an embodiment, in the step S1, the step of the load balancing server receiving the access request further includes:
获取所述用户的地址信息;配合负载均衡服务器上的异地分发解析工具,可以分析出访问用户的地址信息。Obtain the address information of the user; and cooperate with the off-site distribution analysis tool on the load balancing server to analyze the address information of the access user.
在一个实施例中,上述确定目标Cognos集群的预设方式为选择与用户地址信息最接近地域的Cognos集群。上述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤S2,包括:In one embodiment, the foregoing manner of determining the target Cognos cluster is to select a Cognos cluster that is closest to the user address information. Step S2 of determining, by the foregoing load balancing server, the target Cognos cluster in the coordinated clusters of the multiple different regions, including:
根据用户的地址信息,匹配出与用户地址信息最接近地域且处于正常状态的Cognos集群,作为目标Cognos集群。According to the user's address information, the Cognos cluster that is closest to the user's address information and in a normal state is matched as the target Cognos cluster.
例如,在深圳、广州、上海三个地域均部署有Cognos集群,访问的用户的地址信息为广州。若上述三个Cognos集群都处于正常状态,则自动选择将广州Cognos集群作为目标Cognos集群;若广州Cognos集群处于异常状态,则将深圳Cognos集群作为目标Cognos集群。For example, a Cognos cluster is deployed in three regions of Shenzhen, Guangzhou, and Shanghai, and the address information of the accessed users is Guangzhou. If the above three Cognos clusters are in a normal state, the Guangzhou Cognos cluster is automatically selected as the target Cognos cluster; if the Guangzhou Cognos cluster is in an abnormal state, the Shenzhen Cognos cluster is used as the target Cognos cluster.
在另一个实施例中,还设置有一个用户地址-集群映射表,该映射表中存储有与用户地址信息想对应的Cognos集群列表,与用户地址信息对应的Cognos集群列表中包含的Cognos集群可以是一个,也可以是多个;例如,对于广州的用户,对应的Cognos集群列表可以是广州,对于东莞的用户,其对应的Cognos集群列表可以包括广州以及深圳。In another embodiment, a user address-cluster mapping table is further configured, and the mapping table stores a Cognos cluster list corresponding to the user address information, and the Cognos cluster included in the Cognos cluster list corresponding to the user address information may be For example, for users in Guangzhou, the corresponding list of Cognos clusters can be Guangzhou. For users in Dongguan, the corresponding list of Cognos clusters can include Guangzhou and Shenzhen.
具体地,参照图2,上述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤S2,则包括:Specifically, referring to FIG. 2, the step S2 of determining, by the load balancing server, the target Cognos cluster in the plurality of different regions of the Cognos cluster, includes:
步骤S21,根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;Step S21: Matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
根据上述预设设置好的用户地址-集群映射表,以及获取到的用户的地址信息,则可以匹配出与用户地址信息想对应的Cognos集群列表。该列表中至少包括一个Cognos集群。According to the preset user address-cluster mapping table and the obtained user address information, the Cognos cluster list corresponding to the user address information may be matched. The list includes at least one Cognos cluster.
步骤S22,根据匹配结果以及匹配出的所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为目标Cognos集群。Step S22: Select a Cognos cluster in a normal state as the target Cognos cluster according to the matching result and the matched state of the Cognos cluster.
在用户地址-集群映射表中匹配出Cognos集群之后,可能出现该匹配出的Cognos集群正处于异常状态的情况,此时,若将访问请求发送至该Cognos集群则不合理,因此,还需要检测该匹配出的Cognos集群是否处于正常状态;最后,选择出一个适合分发访问请求的目标Cognos集群,该目标Cognos集群即是最后需要处理访问请求的Cognos集群。After the Cognos cluster is matched in the user address-cluster mapping table, the matching Cognos cluster may be in an abnormal state. In this case, it is unreasonable to send the access request to the Cognos cluster. Therefore, it needs to be detected. Whether the matched Cognos cluster is in a normal state; finally, select a target Cognos cluster suitable for distributing access requests, which is the last Cognos cluster that needs to process access requests.
具体地,在一个实施例中,根据上述用户地址-集群映射表匹配的匹配结果为一个Cognos集群,所述根据匹配结果以及匹配出的Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群的步骤S22,具体包括:Specifically, in one embodiment, the matching result matched by the user address-cluster mapping table is a Cognos cluster, and according to the matching result and the status of the matched Cognos cluster, a Cognos cluster in a normal state is selected as the cluster. Step S22 of the target Cognos cluster includes:
若匹配出的一个所述Cognos集群处于正常状态,选择匹配出的所述Cognos集群作为目标Cognos集群。然后将所述访问请求分发至所述目标Cognos集群上;若匹配出的所述Cognos集群处于异常状态,则将所述访问请求随机分发至其它任意一个处于正常状态的Cognos集群上。在其它实施例中,若上述匹配出的所述Cognos集群处于异常状态,则可以选择将访问请求分发至与用户的地址最接近的一个Cognos集群上,其具体过程在此不再进行赘述。If one of the matched Cognos clusters is in a normal state, the matched Cognos cluster is selected as the target Cognos cluster. The access request is then distributed to the target Cognos cluster; if the matched Cognos cluster is in an abnormal state, the access request is randomly distributed to any other Cognos cluster in a normal state. In other embodiments, if the matched Cognos cluster is in an abnormal state, the access request may be distributed to a Cognos cluster closest to the user's address, and the specific process is not described herein.
在另一实施例中,根据上述用户地址-集群映射表匹配的匹配结果中包括多个Cognos集群,且包括有多个所述Cognos集群的优先级;所述根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群的步骤S22,包括:In another embodiment, the matching result matched according to the foregoing user address-cluster mapping table includes multiple Cognos clusters, and includes priorities of multiple of the Cognos clusters; according to the matching result and the Cognos cluster Status, step S22 of selecting a Cognos cluster in a normal state as the target Cognos cluster, including:
根据多个所述Cognos集群的优先级,选择出一个处于正常状态且优先级最高的Cognos集群作为目标Cognos集群,并将监听到的所述访问请求分发至所述目标Cognos集群上。According to the priorities of the multiple Cognos clusters, a Cognos cluster with the highest priority and the highest priority is selected as the target Cognos cluster, and the intercepted access request is distributed to the target Cognos cluster.
本实施例中,匹配出的Cognos集群列表结果中可以包括多个Cognos集群,例如Cognos集群A、B、C,且Cognos集群A优先级高于Cognos集群B,Cognos集群B优先级高于Cognos集群C;若Cognos集群A异常,Cognos集群B、C正常,则选择Cognos集群B为目标Cognos集群。In this embodiment, the results of the matching Cognos cluster list may include multiple Cognos clusters, such as Cognos clusters A, B, and C, and the priority of the Cognos cluster A is higher than that of the Cognos cluster B. The priority of the Cognos cluster B is higher than that of the Cognos cluster. C; If the Cognos cluster A is abnormal and the Cognos clusters B and C are normal, select Cognos cluster B as the target Cognos cluster.
在又一实施例中,负载均衡服务器对上述用户地址-集群映射表进行定时更新。In still another embodiment, the load balancing server periodically updates the user address-cluster mapping table.
具体地,通过获取到各地的Cognos集群中哪些处于正常状态,哪些处于异常状态,此时,将位于用户地址-集群映射表中的异常Cognos集群全部剔除掉,得到更新后的用户地址-集群映射表,然后根据该用户地址-集群映射表以及用户的地址信息,直接匹配出结果,并将匹配出的Cognos集群或者匹配出的优先级最高的Cognos集群作为目标Cognos集群。Specifically, which of the Cognos clusters in the localities are in a normal state and which are in an abnormal state, at this time, all the abnormal Cognos clusters located in the user address-cluster mapping table are all removed, and the updated user address-cluster mapping is obtained. The table then directly matches the result according to the user address-cluster mapping table and the user's address information, and uses the matched Cognos cluster or the matched highest priority Cognos cluster as the target Cognos cluster.
在上述实施例中,每个所述Cognos集群上挂载有NAS(Network Attached Storage,网络附属存储),NAS即共享数据存储,所有挂载了该NAS的Cognos集群都能访问到共享数据存储空间里面的数据,无需每台Cognos集群都存储,极大的节省了存储资源。上述目标Cognos集群在将针对所述访问请求的处理数据生成日志文件,并发送至上述共享数据存储空间。In the above embodiment, NAS (Network) is mounted on each of the Cognos clusters. Attached Storage, NAS is the shared data storage. All the Cognos clusters that have the NAS can access the data in the shared data storage space. It does not need to be stored in every Cognos cluster, which greatly saves storage resources. . The above-mentioned target Cognos cluster generates a log file for processing data for the access request and transmits it to the shared data storage space.
上述负载均衡服务器接收访问请求的步骤S1之前,包括:Before the step S1 of receiving the access request by the load balancing server, the method includes:
步骤S11,将共享数据存储空间中的数据提取到cube文件中,并将所述cube文件同步分发至每个所述Cognos集群上挂载的NAS中。此过程保证了异地多套Cognos集群上的数据完全一致,各个Cognos集群同时对用户提供服务,极大地增强了系统高可用性以及健壮性。本实施例中,每个Cognos集群上的数据均完全一样,则即便其中一个Cognos集群出现异常,其它Cognos集群依然可以提供服务,提升系统容灾能力。In step S11, the data in the shared data storage space is extracted into the cube file, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters. This process ensures that the data on multiple sets of Cognos clusters is completely consistent. Each Cognos cluster provides services to users at the same time, which greatly enhances system high availability and robustness. In this embodiment, the data on each Cognos cluster is the same, and even if one of the Cognos clusters is abnormal, other Cognos clusters can still provide services to improve system disaster tolerance.
在本实施例中,共享数据存储空间中存储有大量的数据,将数据从共享数据存储空间中提取加载到cube文件中,对于从共享数据存储空间中刷出来的cube文件,同时发布到各Cognos集群的NAS上。刷cube文件是Cognos特有的离线分析工具,即数据立方体,通过提前将数据从共享数据存储空间中提取加载到cube文件,用户通过访问cube文件便可以查询所需的数据。In this embodiment, a large amount of data is stored in the shared data storage space, and the data is extracted from the shared data storage space and loaded into the cube file, and the cube files that are extracted from the shared data storage space are simultaneously published to each Cognos. Clustered on the NAS. Brushing the cube file is a special off-line analysis tool of Cognos, that is, the data cube. By extracting the data from the shared data storage space and loading it into the cube file in advance, the user can query the required data by accessing the cube file.
本实施例中,将数据从共享数据存储空间中提取加载到cube文件,用户通过访问NAS上的cube文件便可以查询所需的数据,此过程提高大数据量、用户高并发访问时的数据访问效率。In this embodiment, the data is extracted from the shared data storage space and loaded into the cube file, and the user can query the required data by accessing the cube file on the NAS, and the process improves the data access when the large data volume and the user are concurrently accessed. effectiveness.
在一实施例中,所述将共享数据存储空间中的数据提取到cube文件中,并将所述cube文件同步分发至每个所述Cognos集群上挂载的NAS中的步骤S11之前,包括:In an embodiment, the extracting the data in the shared data storage space into the cube file and distributing the cube file to the NAS mounted on each of the Cognos clusters before the step S11 includes:
步骤S101,将任意一个所述Cognos集群上传的数据导入至共享数据存储空间中。Step S101: Import data uploaded by any one of the Cognos clusters into a shared data storage space.
在本实施例中,各地的Cognos集群上也可能有各地的用户上传的一定量的报表数据,这些数据在其它Cognos集群上没有,为了实现所有Cognos集群上的数据统一,则负载均衡服务器将任意一个所述Cognos集群上上传的数据导入至共享数据存储空间中。然后再通过上述步骤S11所述的将共享数据存储空间中的数据提取到cube文件中,并将所述cube文件同步分发至每个所述Cognos集群上挂载的NAS中。在此不再进行赘述。In this embodiment, there may be a certain amount of report data uploaded by users in various local Cognos clusters. These data are not available on other Cognos clusters. In order to achieve unified data on all Cognos clusters, the load balancing server will be arbitrary. The data uploaded on one of the Cognos clusters is imported into the shared data storage space. Then, the data in the shared data storage space is extracted into the cube file by the above step S11, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters. I will not repeat them here.
本申请实施例中还提供了一种访问请求处理装置,所述装置应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,在本实施例中,上述各个Cognos集群均独立提供服务,且其运行环境完全一致,每个Cognos集群均将其IP地址映射到同一个负载均衡服务器中,即是将多个不同的Cognos集群指向同一个负载均衡服务器,使得负载均衡服务器对各个Cognos集群进行统一均衡管理。各地的用户通过网络访问到负载均衡服务器时,负载均衡服务器可以进行负载均衡,然后分发访问请求至一个上述Cognos集群上。负载均衡服务器主要用于将负载(工作任务)进行平衡、分摊到多个集群上进行执行,例如Web服务器(网站服务器)、FTP服务器(通讯协议服务器)、企业关键应用服务器和其它关键任务服务器等均属于负载均衡服务器,本实施例中使用的F5负载均衡服务器(一种具体产品规格)。The embodiment of the present application further provides an access request processing device, where the device is applied to a remote multi- Cognos cluster environment, and each Cognos cluster shares a data storage space. In this embodiment, each of the foregoing Cognos clusters independently provides services, and The running environment is the same. Each Cognos cluster maps its IP address to the same load balancing server. That is, multiple different Cognos clusters are directed to the same load balancing server, so that the load balancing server unifies each Cognos cluster. Balance management. When users everywhere access the load balancing server over the network, the load balancing server can load balance and then distribute the access request to one of the above Cognos clusters. The load balancing server is mainly used to balance the load (work tasks) and distribute them to multiple clusters for execution, such as web server (web server), FTP server (communication protocol server), enterprise critical application server, and other mission-critical servers. All belong to the load balancing server, the F5 load balancing server (a specific product specification) used in this embodiment.
本实施例中,各地Cognos集群的运行环境一致,且部署在各个地域,Cognos集群设置为多个,便于降低Cognos集群的压力。每个Cognos集群相互独立,其中任一个Cognos集群出现异常时,其它地域的Cognos集群依然可以正常工作,均不会影响到其它地域的Cognos集群的稳定性。通过多地部署,实现异地多活,可以极大的降低单个Cognos集群的压力。In this embodiment, the running environments of the Cognos clusters are consistent, and are deployed in various areas. The Cognos cluster is set to multiple, which is convenient for reducing the pressure of the Cognos cluster. Each Cognos cluster is independent of each other. When any one of the Cognos clusters is abnormal, the Cognos clusters in other regions can still work normally, and will not affect the stability of the Cognos clusters in other regions. By deploying multiple places and achieving different activities, the pressure on a single Cognos cluster can be greatly reduced.
上述Cognos集群上均设置有监控进程,该监控进程用于监控其所在的Cognos集群的状态属性,判断Cognos集群是否处于正常状态。当异常状态发生时,发出异常通知(例如邮件或者电话等)至绑定的管理用户。上述异常状态,包括硬件异常,例如CPU、内存占用过高等,还包括软件异常,例如操作系统崩溃等。The monitoring process is configured on the above-mentioned Cognos cluster. The monitoring process is used to monitor the status attribute of the Cognos cluster in which it is located, and determine whether the Cognos cluster is in a normal state. When an abnormal state occurs, an exception notification (such as mail or phone, etc.) is issued to the bound administrative user. The above abnormal state, including hardware exceptions, such as CPU, memory usage, etc., also includes software exceptions, such as operating system crashes.
参照图3,上述访问请求处理装置包括:Referring to FIG. 3, the above access request processing apparatus includes:
接收单元10,用于接收访问请求。The receiving unit 10 is configured to receive an access request.
上述Cognos集群以及负载均衡服务器部署好之后(组成一个系统),负载均衡服务器在运行时,则可以接收用户的访问请求,该访问请求为用户对Cognos集群的数据访问请求。After the above-mentioned Cognos cluster and the load balancing server are deployed (constituting a system), the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
确定单元20,用于在多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个。The determining unit 20 is configured to determine a target Cognos cluster in a plurality of different regions of the Cognos cluster, where the target Cognos cluster is any one of the Cognos clusters in a normal state.
在本实施例中,接收单元10接收到访问请求之后,确定单元20则发出控制信号至每个上述Cognos集群上,通过Cognos集群上设置的监控进程检测当前Cognos集群是否异常,上述Cognos集群将检测结果发送至上述确定单元20,确定单元20接收到检测结果之后,便于对上述Cognos集群进行均衡管理。例如,确定单元20从处于正常状态的Cognos集群中按照预设方式选择任意一个作为目标Cognos集群。此过程中,确定单元20还可以禁用处于异常状态的所述Cognos集群的服务端口,使其不再提供服务。In this embodiment, after the receiving unit 10 receives the access request, the determining unit 20 sends a control signal to each of the above-mentioned Cognos clusters, and detects whether the current Cognos cluster is abnormal through the monitoring process set on the Cognos cluster, and the above-mentioned Cognos cluster detects The result is sent to the determining unit 20, and after the determining unit 20 receives the detection result, it is convenient to perform balancing management on the Cognos cluster. For example, the determining unit 20 selects any one of the Cognos clusters in the normal state as a target Cognos cluster in a preset manner. In this process, the determining unit 20 can also disable the service port of the Cognos cluster in an abnormal state so that it no longer provides services.
发送单元30,用于将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。The sending unit 30 is configured to send the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
确定单元20在确定目标Cognos集群之后,发送单元30则可以将访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。使得用户的访问请求能够得到响应,便于访问到其想要的数据,避免整个系统发生不可用的情况。After the determining unit 20 determines the target Cognos cluster, the sending unit 30 may send an access request to the target Cognos cluster to cause the target Cognos cluster to process the access request. Enables the user's access request to be responsive, easy to access to the data they want, and avoids the unavailability of the entire system.
检测出每一个Cognos集群是否处于正常状态,处于正常状态的Cognos集群表示可以被访问,确定单元20按照预设方式从处于正常状态的Cognos集群中选择出一个作为目标Cognos集群。便于发送单元30将接收到的用户通过网络发送过来的访问请求分发至其中一个处于正常状态的所述目标Cognos集群上。本实施例中,其中任意一个Cognos集群出现异常状态时,发送单元30将不会将用户的访问请求分发至该异常状态的Cognos集群上。由于是分发至处于正常状态的Cognos集群上,所以可以保障用户的访问请求得到回应,可以访问到用户需要的数据,避免整个系统发生不可用的情况。It is detected whether each of the Cognos clusters is in a normal state, the Cognos cluster representation in the normal state can be accessed, and the determining unit 20 selects one of the Cognos clusters in the normal state as the target Cognos cluster according to a preset manner. The convenient sending unit 30 distributes the received access request sent by the user through the network to one of the target Cognos clusters in a normal state. In this embodiment, when any one of the Cognos clusters has an abnormal state, the sending unit 30 will not distribute the user's access request to the Cognos cluster of the abnormal state. Because it is distributed to the Cognos cluster in the normal state, it can ensure that the user's access request is responded, and the data required by the user can be accessed to avoid the unavailability of the entire system.
具体地,在一具体实施例中,在深圳、广州、上海均部署有一个Cognos集群,且每个Cognos集群运行环境一致,当检测到广州的Cognos集群出现异常状态,而深圳和上海的Cognos集群处于正常状态,则接收到用户的访问请求时,可以选择将访问请求分发至深圳或者上海其中任意一个Cognos集群上。而根据确定目标Cognos集群的预设方式不同,最后在深圳以及上海两地的Cognos集群之中选择的Cognos集群会有所不同,例如若预设方式为随机分发,则可以在深圳以及上海两地的Cognos集群之中随机选择一个Cognos集群;若预设方式为选择与用户的地址信息最近的Cognos集群,则从深圳以及上海两地的Cognos集群之中选择一个距离用户地址最近的一个Cognos集群。Specifically, in a specific embodiment, a Cognos cluster is deployed in Shenzhen, Guangzhou, and Shanghai, and each Cognos cluster runs in a consistent environment. When an abnormal state of the Cognos cluster in Guangzhou is detected, the Cognos clusters in Shenzhen and Shanghai are detected. In the normal state, when receiving a user's access request, you can choose to distribute the access request to any of the clusters in Shenzhen or Shanghai. According to the preset method of determining the target Cognos cluster, the Cognos cluster selected in the final clusters in Shenzhen and Shanghai will be different. For example, if the default mode is random distribution, it can be in Shenzhen and Shanghai. Select a Cognos cluster randomly among the Cognos clusters; if the default method is to select the Cognos cluster closest to the user's address information, select a Cognos cluster closest to the user's address from the Cognos clusters in Shenzhen and Shanghai.
在一实施例中,上述访问请求处理装置还包括:In an embodiment, the access request processing apparatus further includes:
转发单元,用于获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。And a forwarding unit, configured to send the access request to any other Cognos cluster in a normal state when the target Cognos cluster is in an abnormal state.
若所述目标Cognos集群处于异常状态,为了避免用户的访问请求得不到响应,则从其它的Cognos集群中选择出任意一个处于正常状态的Cognos集群作为上述访问请求的目标Cognos集群。If the target Cognos cluster is in an abnormal state, in order to prevent the user's access request from being unresponsive, any other Cognos cluster selected from the other Cognos clusters is used as the target Cognos cluster of the access request.
负载均衡服务器获取到所述目标Cognos集群处于异常状态时,则禁用处于异常状态的所述目标Cognos集群的服务端口。When the load balancing server obtains that the target Cognos cluster is in an abnormal state, the service port of the target Cognos cluster in the abnormal state is disabled.
本实施例中,当检测到目标Cognos集群处于异常状态时,只需将该目标Cognos集群服务端口禁用,上述服务端口禁用之后,发送单元30将不再分发请求,用户发送的访问请求就只会发往其它正常Cognos集群中进行处理。在另一实施例中,还可以通过禁用负载均衡服务器对该目标Cognos集群的分发访问请求的任务,以使得不再分发用户的访问请求至该目标Cognos集群上。上述两种方式均可以实现不再继续在发生异常的Cognos集群上分发请求,而将请求分发至其它正常的Cognos集群上;避免了Cognos集群上发生灾难后存在数据丢失,系统长时间不可用的风险。在上述确定单元20确定目标Cognos集群中,若检测到其中一个Cognos集群处于异常状态时,同样可以按照上述方式进行处理。In this embodiment, when it is detected that the target Cognos cluster is in an abnormal state, the target Cognos cluster service port only needs to be disabled. After the service port is disabled, the sending unit 30 will not distribute the request, and the access request sent by the user will only be Send it to other normal Cognos clusters for processing. In another embodiment, the task of distributing the access request to the target Cognos cluster may also be disabled by the load balancing server such that the user's access request is no longer distributed to the target Cognos cluster. Both of the above methods can not continue to distribute requests on the Cognos cluster where the exception occurs, but distribute the request to other normal Cognos clusters; avoid data loss after the disaster occurs on the Cognos cluster, and the system is unavailable for a long time. risk. When the determining unit 20 determines that the target Cognos cluster is in an abnormal state, it can also be processed in the above manner.
优选地,在一实施例中,检测到某个Cognos集群出现异常时,利用修复工具进行修复,或者自动对该Cognos集群进行重启,重启过程中,将该Cognos集群服务端口关闭,设置为不可用状态。Cognos集群恢复正常后,该Cognos集群自动打开服务端口,恢复使用,并发送一个恢复正常状态的信号至负载均衡服务器以作出提示,负载均衡服务器接收到上述信号后,则可以重新分发访问请求至该Cognos集群上。Preferably, in an embodiment, when an abnormality occurs in a Cognos cluster, the repair tool is used to repair, or the Cognos cluster is automatically restarted. During the restart, the Cognos cluster service port is closed and set to be unavailable. status. After the Cognos cluster returns to normal, the Cognos cluster automatically opens the service port, resumes use, and sends a signal to restore the normal state to the load balancing server to make a prompt. After receiving the above signal, the load balancing server can redistribute the access request to the On the Cognos cluster.
在一实施例中,上述获取单元10还获取所述用户的地址信息;配合负载均衡服务器上的异地分发解析工具,可以分析出访问用户的地址信息。In an embodiment, the obtaining unit 10 further acquires address information of the user; and cooperates with the off-site distribution analysis tool on the load balancing server to analyze the address information of the accessed user.
在一个实施例中,上述确定单元20确定目标Cognos集群的预设方式为选择与用户地址信息最接近地域的Cognos集群。上述确定单元20具体用于:In one embodiment, the determining unit 20 determines that the target Cognos cluster is preset by selecting a Cognos cluster that is closest to the user address information. The determining unit 20 is specifically configured to:
根据用户的地址信息,匹配出与用户地址信息最接近地域且处于正常状态的Cognos集群,作为目标Cognos集群。According to the user's address information, the Cognos cluster that is closest to the user's address information and in a normal state is matched as the target Cognos cluster.
例如,在深圳、广州、上海三个地域均部署有Cognos集群,访问的用户的地址信息为广州。若上述三个Cognos集群都处于正常状态,则自动选择将广州Cognos集群作为目标Cognos集群;若广州Cognos集群处于异常状态,则将深圳Cognos集群作为目标Cognos集群。For example, a Cognos cluster is deployed in three regions of Shenzhen, Guangzhou, and Shanghai, and the address information of the accessed users is Guangzhou. If the above three Cognos clusters are in a normal state, the Guangzhou Cognos cluster is automatically selected as the target Cognos cluster; if the Guangzhou Cognos cluster is in an abnormal state, the Shenzhen Cognos cluster is used as the target Cognos cluster.
在另一实施例中,还设置有一个用户地址-集群映射表,该映射表中存储有与用户地址信息想对应的Cognos集群列表,与用户地址信息对应的Cognos集群列表中包含的Cognos集群可以是一个,也可以是多个;例如,对于广州的用户,对应的Cognos集群列表可以是广州,对于东莞的用户,其对应的Cognos集群列表可以包括广州以及深圳。In another embodiment, a user address-cluster mapping table is further configured, and the mapping table stores a list of Cognos clusters corresponding to the user address information, and the Cognos cluster included in the Cognos cluster list corresponding to the user address information may be For example, for users in Guangzhou, the corresponding list of Cognos clusters can be Guangzhou. For users in Dongguan, the corresponding list of Cognos clusters can include Guangzhou and Shenzhen.
具体地,参照图4,在一实施例中,上述确定单元20包括:Specifically, referring to FIG. 4, in an embodiment, the determining unit 20 includes:
匹配子单元201,用于根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;The matching sub-unit 201 is configured to match, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
根据上述预设设置好的用户地址-集群映射表,以及获取到的用户的地址信息,匹配子单元201则可以匹配出与用户地址信息想对应的Cognos集群列表。该列表中至少包括一个Cognos集群。According to the preset user address-cluster mapping table and the obtained address information of the user, the matching sub-unit 201 can match the Cognos cluster list corresponding to the user address information. The list includes at least one Cognos cluster.
选择子单元202,用于根据匹配结果以及匹配出的所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为目标Cognos集群。The selecting sub-unit 202 is configured to select a Cognos cluster in a normal state as the target Cognos cluster according to the matching result and the matched state of the Cognos cluster.
匹配子单元201在用户地址-集群映射表中匹配出Cognos集群之后,可能出现该匹配出的Cognos集群正处于异常状态的情况,此时,若将访问请求发送至该Cognos集群则不合理,因此,还需要检测该匹配出的Cognos集群是否处于正常状态;最后,选择子单元202选择出一个适合分发访问请求的目标Cognos集群,该目标Cognos集群即是最后需要处理访问请求的Cognos集群。After the matching sub-unit 201 matches the Cognos cluster in the user address-cluster mapping table, the matching Cognos cluster may be in an abnormal state. In this case, it is unreasonable to send the access request to the Cognos cluster. It is also necessary to detect whether the matched Cognos cluster is in a normal state; finally, the selection sub-unit 202 selects a target Cognos cluster suitable for distributing the access request, which is the last Cognos cluster that needs to process the access request.
在一个实施例中,匹配子单元201根据上述用户地址-集群映射表匹配的匹配结果为一个Cognos集群,上述选择子单元202则具体用于:In an embodiment, the matching sub-unit 201 is a Cognos cluster according to the matching result matched by the user address-cluster mapping table, and the selecting sub-unit 202 is specifically used to:
若匹配出的一个所述Cognos集群处于正常状态,选择匹配出的所述Cognos集群作为目标Cognos集群。然后将所述访问请求分发至所述目标Cognos集群上;若匹配出的所述Cognos集群处于异常状态,则将所述访问请求随机分发至其它任意一个处于正常状态的Cognos集群上。在其它实施例中,若上述匹配出的所述Cognos集群处于异常状态,则可以选择将访问请求分发至与用户的地址最接近的一个Cognos集群上,其具体过程在此不再进行赘述。If one of the matched Cognos clusters is in a normal state, the matched Cognos cluster is selected as the target Cognos cluster. The access request is then distributed to the target Cognos cluster; if the matched Cognos cluster is in an abnormal state, the access request is randomly distributed to any other Cognos cluster in a normal state. In other embodiments, if the matched Cognos cluster is in an abnormal state, the access request may be distributed to a Cognos cluster closest to the user's address, and the specific process is not described herein.
在另一实施例中,匹配子单元201根据上述用户地址-集群映射表匹配的匹配结果中包括多个Cognos集群,且包括有多个所述Cognos集群的优先级;上述选择子单元202则具体用于:In another embodiment, the matching sub-unit 201 includes a plurality of Cognos clusters according to the matching result matched by the user address-cluster mapping table, and includes a plurality of priorities of the Cognos cluster; the selecting sub-unit 202 is specific. Used for:
根据多个所述Cognos集群的优先级,选择出一个处于正常状态且优先级最高的Cognos集群作为目标Cognos集群,并将监听到的所述访问请求分发至所述目标Cognos集群上。According to the priorities of the multiple Cognos clusters, a Cognos cluster with the highest priority and the highest priority is selected as the target Cognos cluster, and the intercepted access request is distributed to the target Cognos cluster.
本实施例中,匹配子单元201匹配出的Cognos集群列表结果中可以包括多个Cognos集群,例如Cognos集群A、B、C,且Cognos集群A优先级高于Cognos集群B,Cognos集群B优先级高于Cognos集群C;若Cognos集群A异常,Cognos集群B、C正常,则选择子单元202选择Cognos集群B为目标Cognos集群。In this embodiment, the results of the Cognos cluster list matched by the matching sub-unit 201 may include multiple Cognos clusters, such as Cognos clusters A, B, and C, and the priority of the Cognos cluster A is higher than that of the Cognos cluster B, and the priority of the Cognos cluster B is If the Cognos cluster A is abnormal and the Cognos clusters B and C are normal, the selection sub-unit 202 selects Cognos cluster B as the target Cognos cluster.
在又一实施例中,还包括更新单元,更新单元对上述用户地址-集群映射表进行定时更新。In still another embodiment, the method further includes an update unit that periodically updates the user address-cluster mapping table.
具体地,通过获取到各地的Cognos集群中哪些处于正常状态,哪些处于异常状态,此时,将位于用户地址-集群映射表中的异常Cognos集群全部剔除掉,得到更新后的用户地址-集群映射表,然后根据该用户地址-集群映射表以及用户的地址信息,直接匹配出结果,并将匹配出的Cognos集群或者匹配出的优先级最高的Cognos集群作为目标Cognos集群。Specifically, which of the Cognos clusters in the localities are in a normal state and which are in an abnormal state, at this time, all the abnormal Cognos clusters located in the user address-cluster mapping table are all removed, and the updated user address-cluster mapping is obtained. The table then directly matches the result according to the user address-cluster mapping table and the user's address information, and uses the matched Cognos cluster or the matched highest priority Cognos cluster as the target Cognos cluster.
在上述实施例中,每个所述Cognos集群上挂载有NAS(Network Attached Storage,网络附属存储),NAS为共享数据存储,所有挂载了该NAS的Cognos集群都能访问到共享数据存储空间里面的数据,无需每台Cognos集群都存储,极大的节省了存储资源。上述目标Cognos集群针对所述访问请求的处理数据生成日志文件,并发送至上述共享数据存储空间。In the above embodiment, NAS (Network) is mounted on each of the Cognos clusters. Attached Storage, NAS is a shared data storage. All Cognos clusters that have the NAS can access the data in the shared data storage space. No storage is required for each Cognos cluster, which greatly saves storage resources. . The above-mentioned target Cognos cluster generates a log file for the processing data of the access request, and sends it to the shared data storage space.
上述访问请求处理装置还包括:The access request processing device further includes:
同步单元,用于将共享数据存储空间中的数据提取到cube文件中,并将所述cube文件同步分发至每个所述Cognos集群上挂载的NAS中。此过程保证了异地多套Cognos集群上的数据完全一致,各个Cognos集群同时对用户提供服务,极大地增强了系统高可用性以及健壮性。本实施例中,每个Cognos集群上的数据均完全一样,则即便其中一个Cognos集群出现异常,其它Cognos集群依然可以提供服务,提升系统容灾能力。And a synchronization unit, configured to extract data in the shared data storage space into the cube file, and synchronously distribute the cube file to the NAS mounted on each of the Cognos clusters. This process ensures that the data on multiple sets of Cognos clusters is completely consistent. Each Cognos cluster provides services to users at the same time, which greatly enhances system high availability and robustness. In this embodiment, the data on each Cognos cluster is the same, and even if one of the Cognos clusters is abnormal, other Cognos clusters can still provide services to improve system disaster tolerance.
在本实施例中,共享数据存储空间中存储有大量的数据,同步单元将数据从共享数据存储空间中提取加载到cube文件中,对于从共享数据存储空间中刷出来的cube文件,同时发布到各Cognos集群的NAS上。刷cube文件是Cognos特有的离线分析工具,即数据立方体,通过提前将数据从共享数据存储空间中提取加载到cube文件,用户通过访问cube文件便可以查询所需的数据。In this embodiment, a large amount of data is stored in the shared data storage space, and the synchronization unit extracts and loads the data from the shared data storage space into the cube file, and simultaneously publishes the cube file that is extracted from the shared data storage space to the cube file. On each NAS of the Cognos cluster. Brushing the cube file is a special off-line analysis tool of Cognos, that is, the data cube. By extracting the data from the shared data storage space and loading it into the cube file in advance, the user can query the required data by accessing the cube file.
本实施例中,同步单元将数据从共享数据存储空间中提取加载到cube文件,用户通过访问NAS上的cube文件便可以查询所需的数据,此过程提高大数据量、用户高并发访问时的数据访问效率。In this embodiment, the synchronization unit extracts data from the shared data storage space and loads it into the cube file, and the user can query the required data by accessing the cube file on the NAS, and the process improves the amount of large data and the concurrent access of the user. Data access efficiency.
在一实施例中,上述访问请求处理装置还包括:In an embodiment, the access request processing apparatus further includes:
导入单元,用于将任意一个所述Cognos集群上上传的数据导入至共享数据存储空间中。The import unit is configured to import data uploaded on any one of the Cognos clusters into a shared data storage space.
在本实施例中,各地的Cognos集群上也可能有各地的用户上传的一定量的报表数据,这些数据在其它Cognos集群上没有,为了实现所有Cognos集群上的数据统一,则负载均衡服务器将任意一个所述Cognos集群上上传的数据导入至共享数据存储空间中。然后再通过上述步骤S11所述的将共享数据存储空间中的数据提取到cube文件中,并将所述cube文件同步分发至每个所述Cognos集群上挂载的NAS中。在此不再进行赘述。In this embodiment, there may be a certain amount of report data uploaded by users in various local Cognos clusters. These data are not available on other Cognos clusters. In order to achieve unified data on all Cognos clusters, the load balancing server will be arbitrary. The data uploaded on one of the Cognos clusters is imported into the shared data storage space. Then, the data in the shared data storage space is extracted into the cube file by the above step S11, and the cube file is synchronously distributed to the NAS mounted on each of the Cognos clusters. I will not repeat them here.
参照图5,本申请一实施例中还提供了一种访问请求处理方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群,本实施例中的Cognos集群环境与上述实施例中的Cognos集群环境一致,在此不再进行赘述。Referring to FIG. 5, an embodiment of the present application further provides an access request processing method, where the method is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster. The Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
本实施例中,所述访问请求处理方法包括:In this embodiment, the access request processing method includes:
步骤S201,目标Cognos集群接收所述负载均衡服务器发送的访问请求,所述访问请求为所述负载均衡服务器确定所述目标Cognos集群为正常状态时发送的;Step S201, the target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
本步骤中,用户的访问请求发送至负载均衡服务器,负载均衡服务器再选择出一个目标Cognos集群。目标Cognos集群为各个地域的Cognos集群中的任意一个处于正常状态的Cognos集群。目标Cognos集群的确定请参照上述实施例中的步骤S2、步骤S21以及步骤S22的具体实现,在此不再进行赘述。负载均衡服务器在管理的多个地域的Cognos集群中确定目标Cognos集群时,则将其接收到的访问请求发送至所述Cognos集群,目标Cognos集群则接收上述负载均衡服务器发送的访问请求。In this step, the user's access request is sent to the load balancing server, and the load balancing server selects a target Cognos cluster. The target Cognos cluster is a Cognos cluster that is in a normal state in any of the Cognos clusters in each region. For the determination of the target Cognos cluster, refer to the specific implementations of step S2, step S21, and step S22 in the foregoing embodiment, and details are not described herein. When the load balancing server determines the target Cognos cluster in the managed Cognos clusters in multiple regions, it sends the received access request to the Cognos cluster, and the target Cognos cluster receives the access request sent by the load balancing server.
步骤S202,所述目标Cognos集群对所述访问请求进行处理。Step S202, the target Cognos cluster processes the access request.
在本实施例中,目标Cognos集群接收到访问请求之后,则对所述访问请求进行处理。然后,所述目标Cognos集群将所述访问请求处理数据生成日志文件,并将所述日志文件发送至所述共享数据存储空间。In this embodiment, after receiving the access request, the target Cognos cluster processes the access request. The target Cognos cluster then generates a log file from the access request processing data and sends the log file to the shared data storage space.
本实施例中的各Cognos集群以及负载均衡服务器的其它具体功能实现请参照上述方法实施例中所述,在此不再进行赘述。For the implementation of other specific functions of the Cognos cluster and the load balancing server in this embodiment, refer to the foregoing method embodiments, and details are not described herein.
参照图6,本申请一实施例中还提供了一种访问请求处理装置,所述装置应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群,本实施例中的Cognos集群环境与上述实施例中的Cognos集群环境一致,在此不再进行赘述。Referring to FIG. 6, an embodiment of the present application further provides an access request processing device, where the device is applied to an off-site multiple Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster. The Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
所述访问请求处理装置包括:The access request processing apparatus includes:
接收模块101,用于接收所述负载均衡服务器发送的访问请求,所述访问请求为所述负载均衡服务器确定目标Cognos集群为正常状态时发送的;The receiving module 101 is configured to receive an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
用户的访问请求发送至负载均衡服务器,负载均衡服务器再选择出一个目标Cognos集群。目标Cognos集群为各个地域的Cognos集群中的任意一个处于正常状态的Cognos集群。目标Cognos集群的确定请参照上述装置实施例中的确定单元20具体实现,在此不再进行赘述。负载均衡服务器在管理的多个地域的Cognos集群中确定目标Cognos集群时,则将其接收到的访问请求发送至所述Cognos集群,目标Cognos集群上的接收模块101则接收上述负载均衡服务器发送的访问请求。The user's access request is sent to the load balancing server, which then selects a target Cognos cluster. The target Cognos cluster is a Cognos cluster that is in a normal state in any of the Cognos clusters in each region. For the determination of the target Cognos cluster, refer to the determining unit 20 in the foregoing device embodiment, and details are not described herein. When the load balancing server determines the target Cognos cluster in the coordinated clusters of the multiple regions, the access request received by the load balancing server is sent to the Cognos cluster, and the receiving module 101 on the target Cognos cluster receives the sent by the load balancing server. Access request.
处理模块102,用于对所述访问请求进行处理。The processing module 102 is configured to process the access request.
在本实施例中,接收模块101接收到访问请求之后,处理模块102则对所述访问请求进行处理。然后,所述处理模块102将所述访问请求处理数据生成日志文件,并将所述日志文件发送至所述共享数据存储空间。In this embodiment, after the receiving module 101 receives the access request, the processing module 102 processes the access request. Then, the processing module 102 generates a log file by the access request processing data, and sends the log file to the shared data storage space.
本实施例中的各Cognos集群以及负载均衡服务器的其它具体功能实现请参照上述装置实施例中所述,在此不再进行赘述。For the implementation of the other specific functions of the Cognos cluster and the load balancing server in this embodiment, refer to the foregoing device embodiments, and details are not described herein.
参照图7,本申请一实施例中还提供了一种访问请求处理系统,所述系统应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群;本实施例中的Cognos集群环境与上述实施例中的Cognos集群环境一致,在此不再进行赘述。Referring to FIG. 7, an embodiment of the present application further provides an access request processing system, where the system is applied to an off-site multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages multiple different regions of the Cognos cluster. The Cognos cluster environment in this embodiment is the same as the Cognos cluster environment in the foregoing embodiment, and details are not described herein.
所述负载均衡服务器接收访问请求;上述Cognos集群以及负载均衡服务器部署好之后,负载均衡服务器在运行时,则可以接收用户的访问请求,该访问请求为用户对Cognos集群的数据访问请求。The load balancing server receives the access request; after the Cognos cluster and the load balancing server are deployed, the load balancing server can receive the user's access request when the load balancing server is running, and the access request is a data access request of the user to the Cognos cluster.
所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个。The load balancing server determines a target Cognos cluster in a plurality of Cognos clusters in different regions, and the target Cognos cluster is any one of the Cognos clusters in a normal state.
本实施例中,负载均衡服务器确定目标Cognos集群的过程参照上述方法实施例中的步骤S2、步骤S21以及步骤S22的具体实现,在此不再进行赘述。In this embodiment, the process of determining the target Cognos cluster by the load balancing server refers to the specific implementations of step S2, step S21, and step S22 in the foregoing method embodiment, and details are not described herein.
所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群;负载均衡服务器从管理的多个不同地域的Cognos集群中确定出目标Cognos集群,则将其接收到的访问请求发送至目标Cognos集群。The load balancing server sends the access request to the target Cognos cluster; the load balancing server determines the target Cognos cluster from the managed Cognos clusters of different regions, and sends the received access request to the target Cognos. Cluster.
所述目标Cognos集群接收到所述访问请求,则对所述访问请求进行处理。将所述访问请求处理数据生成日志文件,并将所述日志文件发送至所述共享数据存储空间。The target Cognos cluster receives the access request and processes the access request. The access request processing data generates a log file, and the log file is sent to the shared data storage space.
本实施例中提供的访问请求处理系统中包括的Cognos集群以及负载均衡服务器的其它具体功能实现请参照上述方法实施例中所述,在此不再进行赘述。The other specific functions of the Cognos cluster and the load balancing server included in the access request processing system provided in this embodiment are described in the foregoing method embodiments, and details are not described herein.
参照图8,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和共享数据存储空间。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和共享数据存储空间。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的共享数据存储空间用于存储报表等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种访问请求处理方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间。Referring to FIG. 8, a computer device is provided in the embodiment of the present application. The computer device may be a server, and its internal structure may be as shown in FIG. 8. The computer device includes a processor, memory, network interface, and shared data storage space connected by a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a shared data storage space. The internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium. The shared data storage space of the computer device is used to store data such as reports. The network interface of the computer device is used to communicate with an external terminal via a network connection. The computer readable instructions are executed by the processor to implement an access request processing method, and the method is applied to an off-site multi- Cognos cluster environment, and each Cognos cluster shares a data storage space.
上述处理器执行上述访问请求处理方法的步骤:The above processor executes the steps of the above access request processing method:
接收访问请求;Receiving an access request;
在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。Sending the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
在一实施例中,上述访问请求中携带有用户的地址信息,上述处理器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤,包括:In an embodiment, the access request carries the address information of the user, and the step of determining, by the processor, the target Cognos cluster in the coordinated clusters of the multiple different regions, including:
根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;And matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。Based on the matching result and the status of the Cognos cluster, a Cognos cluster in a normal state is selected as the target Cognos cluster.
在一实施例中,上述处理器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤之后,包括:In an embodiment, after the step of the foregoing processor sending the access request to the target Cognos cluster to enable the target Cognos cluster to process the access request, the method includes:
获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
在一实施例中,上述处理器获取到所述目标Cognos集群处于异常状态时的步骤之后,还包括:In an embodiment, after the step of acquiring, by the processor, the target Cognos cluster is in an abnormal state, the method further includes:
禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
在另一种实施例中,上述处理器执行另一种访问请求处理方法的步骤:In another embodiment, the processor performs the steps of another access request processing method:
目标Cognos集群接收所述负载均衡服务器发送的访问请求,所述访问请求为所述负载均衡服务器确定所述目标Cognos集群为正常状态时发送的;The target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
所述目标Cognos集群对所述访问请求进行处理。The target Cognos cluster processes the access request.
在另一实施例中,上述处理器对所述访问请求进行处理的步骤之后,包括:In another embodiment, after the step of processing, by the processor, the access request, the method includes:
所述目标Cognos集群将所述访问请求处理数据生成日志文件,并将所述日志文件发送至所述共享数据存储空间。The target Cognos cluster generates a log file by the access request processing data, and sends the log file to the shared data storage space.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。It will be understood by those skilled in the art that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the present application is applied.
本申请一实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现一种访问请求处理方法,具体为:An embodiment of the present application further provides a computer non-transparent readable storage medium, where computer readable instructions are stored, and when the computer readable instructions are executed by the processor, an access request processing method is implemented, specifically:
接收访问请求;Receiving an access request;
在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。Sending the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
在一实施例中,上述访问请求中携带有用户的地址信息,上述处理器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤,包括:In an embodiment, the access request carries the address information of the user, and the step of determining, by the processor, the target Cognos cluster in the coordinated clusters of the multiple different regions, including:
根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;And matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。Based on the matching result and the status of the Cognos cluster, a Cognos cluster in a normal state is selected as the target Cognos cluster.
在一实施例中,上述处理器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤之后,包括:In an embodiment, after the step of the foregoing processor sending the access request to the target Cognos cluster to enable the target Cognos cluster to process the access request, the method includes:
获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
在一实施例中,上述处理器获取到所述目标Cognos集群处于异常状态时的步骤之后,还包括:In an embodiment, after the step of acquiring, by the processor, the target Cognos cluster is in an abnormal state, the method further includes:
禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
在另一可选实施例中,计算机可读指令被处理器执行时实现另一种访问请求处理方法,具体为:In another alternative embodiment, the computer readable instructions are executed by the processor to implement another access request processing method, specifically:
目标Cognos集群接收所述负载均衡服务器发送的访问请求,所述访问请求为所述负载均衡服务器确定所述目标Cognos集群为正常状态时发送的;The target Cognos cluster receives an access request sent by the load balancing server, where the access request is sent when the load balancing server determines that the target Cognos cluster is in a normal state;
所述目标Cognos集群对所述访问请求进行处理。The target Cognos cluster processes the access request.
在另一实施例中,上述处理器对所述访问请求进行处理的步骤之后,包括:In another embodiment, after the step of processing, by the processor, the access request, the method includes:
所述目标Cognos集群将所述访问请求处理数据生成日志文件,并将所述日志文件发送至所述共享数据存储空间。The target Cognos cluster generates a log file by the access request processing data, and sends the log file to the shared data storage space.
综上所述,为本申请实施例中提供的访问请求处理方法、装置、系统、计算机设备和存储介质,应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器接收访问请求;所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理,克服Cognos集群异常时用户无法访问数据的缺陷,保障每一次用户的访问请求都能得到回应;避免了Cognos集群上发生灾难后存在数据丢失,系统长时间不可用的风险。In summary, the access request processing method, device, system, computer device, and storage medium provided in the embodiments of the present application are applied to an off-site multiple Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server receives an access request. The load balancing server determines a target Cognos cluster in a plurality of Cognos clusters of different regions, the target Cognos cluster is any one of the Cognos clusters in a normal state; the load balancing server sends the access request Giving the target Cognos cluster to the target Cognos cluster to process the access request, overcoming the defect that the user cannot access the data when the Cognos cluster is abnormal, and ensuring that each user's access request can be responded; avoiding the Cognos cluster There is a risk of data loss after the disaster occurs and the system is unavailable for a long time.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above description is only a preferred embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present application.

Claims (16)

  1. 一种访问请求处理方法,其特征在于,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器管理多个不同地域的Cognos集群,所述方法包括:An access request processing method is characterized in that: the method is applied to a remote multi- Cognos cluster environment, each Cognos cluster shares a data storage space, and the load balancing server manages a plurality of Cognos clusters in different regions, and the method includes:
    负载均衡服务器接收访问请求;The load balancing server receives the access request;
    所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining, by the load balancing server, a target Cognos cluster in a plurality of Cognos clusters in different regions, where the target Cognos cluster is any one of the Cognos clusters in a normal state;
    所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。The load balancing server sends the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
  2. 根据权利要求1所述的访问请求处理方法,其特征在于,所述访问请求中携带有用户的地址信息,所述负载均衡服务器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤,包括:The access request processing method according to claim 1, wherein the access request carries the address information of the user, and the step of the load balancing server determining the target Cognos cluster in the managed Cognos clusters of different regions ,include:
    根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;And matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
    根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。Based on the matching result and the status of the Cognos cluster, a Cognos cluster in a normal state is selected as the target Cognos cluster.
  3. 根据权利要求1所述的访问请求处理方法,其特征在于,所述负载均衡服务器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤之后,包括:The access request processing method according to claim 1, wherein the load balancing server sends the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request. After that, include:
    所述负载均衡服务器获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the load balancing server acquires that the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
  4. 根据权利要求3所述的访问请求处理方法,其特征在于,所述负载均衡服务器获取到所述目标Cognos集群处于异常状态时的步骤之后,还包括:The access request processing method according to claim 3, further comprising: after the step of the load balancing server acquiring the target Cognos cluster in an abnormal state, the method further comprising:
    禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
  5. 一种访问请求处理装置,其特征在于,所述装置应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,所述装置包括:An access request processing apparatus, wherein the apparatus is applied to an off-site multi-collusion cluster environment, and each Cognos cluster shares a data storage space, and the apparatus includes:
    接收单元,用于接收访问请求;a receiving unit, configured to receive an access request;
    确定单元,用于在多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;a determining unit, configured to determine a target Cognos cluster in a plurality of different geographical regions of the Cognos cluster, where the target Cognos cluster is any one of the Cognos clusters in a normal state;
    发送单元,用于将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。And a sending unit, configured to send the access request to the target Cognos cluster, so that the target Cognos cluster processes the access request.
  6. 根据权利要求5所述的访问请求处理装置,其特征在于,所述确定单元包括:The access request processing apparatus according to claim 5, wherein the determining unit comprises:
    匹配子单元,用于根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;a matching subunit, configured to match, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
    选择子单元,用于根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。The subunit is selected to select a Cognos cluster in a normal state as the target Cognos cluster according to the matching result and the status of the Cognos cluster.
  7. 根据权利要求5所述的访问请求处理装置,其特征在于,还包括:The access request processing apparatus according to claim 5, further comprising:
    转发单元,用于获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。And a forwarding unit, configured to send the access request to any other Cognos cluster in a normal state when the target Cognos cluster is in an abnormal state.
  8. 根据权利要求7所述的访问请求处理装置,其特征在于,所述转发单元还用于:The access request processing apparatus according to claim 7, wherein the forwarding unit is further configured to:
    禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现访问请求处理方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器的处理器管理多个不同地域的Cognos集群,包括:A computer device comprising a memory and a processor, the memory storing computer readable instructions, wherein the processor implements an access request processing method when the computer readable instructions are executed, the method being applied to different locations In the Cognos cluster environment, each Cognos cluster shares the data storage space. The processor of the load balancing server manages multiple clusters of Cognos in different regions, including:
    接收访问请求;Receiving an access request;
    在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
    将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。Sending the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
  10. 根据权利要求9所述的计算机设备,其特征在于,所述访问请求中携带有用户的地址信息,所述处理器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤,包括:The computer device according to claim 9, wherein the access request carries the address information of the user, and the step of the processor determining the target Cognos cluster in the coordinated clusters of the plurality of different regions, including:
    根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;And matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
    根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。Based on the matching result and the status of the Cognos cluster, a Cognos cluster in a normal state is selected as the target Cognos cluster.
  11. 根据权利要求9所述的计算机设备,其特征在于,所述处理器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤之后,包括:The computer device according to claim 9, wherein the processor sends the access request to the target Cognos cluster to enable the target Cognos cluster to process the access request, including :
    获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器获取到所述目标Cognos集群处于异常状态时的步骤之后,还包括:The computer device according to claim 11, wherein after the step of the processor acquiring the target Cognos cluster in an abnormal state, the method further includes:
    禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
  13. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现访问请求处理方法,所述方法,所述方法应用于异地多Cognos集群环境,各Cognos集群共享数据存储空间,负载均衡服务器的处理器管理多个不同地域的Cognos集群,包括:A computer non-volatile readable storage medium having stored thereon computer readable instructions, wherein the computer readable instructions are executed by a processor to implement an access request processing method, the method, the method application In a heterogeneous Cognos cluster environment, each Cognos cluster shares a data storage space, and the processor of the load balancing server manages a plurality of Cognos clusters in different regions, including:
    接收访问请求;Receiving an access request;
    在管理的多个不同地域的Cognos集群中确定目标Cognos集群,所述目标Cognos集群为处于正常状态的Cognos集群中的任意一个;Determining a target Cognos cluster in a plurality of different geographically-managed Cognos clusters, the target Cognos cluster being any one of the normal Cognos clusters;
    将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理。Sending the access request to the target Cognos cluster to cause the target Cognos cluster to process the access request.
  14. 根据权利要求13所述的计算机非易失性可读存储介质,其特征在于,所述访问请求中携带有用户的地址信息,所述处理器在管理的多个不同地域的Cognos集群中确定目标Cognos集群的步骤,包括:The computer non-volatile readable storage medium according to claim 13, wherein the access request carries address information of a user, and the processor determines a target in a plurality of Cognos clusters managed by different regions. The steps of the Cognos cluster, including:
    根据所述用户的地址信息,在预设的用户地址-集群映射表中匹配出对应所述地址信息的Cognos集群;And matching, according to the address information of the user, a Cognos cluster corresponding to the address information in a preset user address-cluster mapping table;
    根据匹配结果以及所述Cognos集群的状态,选择出一个处于正常状态的Cognos集群作为所述目标Cognos集群。Based on the matching result and the status of the Cognos cluster, a Cognos cluster in a normal state is selected as the target Cognos cluster.
  15. 根据权利要求13所述的计算机非易失性可读存储介质,其特征在于,所述处理器将所述访问请求发送给所述目标Cognos集群,以使所述目标Cognos集群对所述访问请求进行处理的步骤之后,包括:The computer non-volatile readable storage medium of claim 13, wherein the processor sends the access request to the target Cognos cluster to cause the target Cognos cluster to access the access request After the steps of processing, include:
    获取到所述目标Cognos集群处于异常状态时,将所述访问请求发送至其它任意一个处于正常状态的Cognos集群。When the target Cognos cluster is in an abnormal state, the access request is sent to any other Cognos cluster in a normal state.
  16. 根据权利要求15所述的计算机非易失性可读存储介质,其特征在于,所述处理器获取到所述目标Cognos集群处于异常状态时的步骤之后,还包括:The computer non-volatile readable storage medium according to claim 15, wherein after the step of the processor acquiring the target Cognos cluster in an abnormal state, the method further comprises:
    禁用处于异常状态的所述目标Cognos集群的服务端口。Disable the service port of the target Cognos cluster in an abnormal state.
PCT/CN2018/095684 2018-05-04 2018-07-13 Access request processing method, apparatus, computer device, and storage medium WO2019210580A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810421552.8A CN108762917A (en) 2018-05-04 2018-05-04 Access request processing method, device, system, computer equipment and storage medium
CN201810421552.8 2018-05-04

Publications (1)

Publication Number Publication Date
WO2019210580A1 true WO2019210580A1 (en) 2019-11-07

Family

ID=64009154

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095684 WO2019210580A1 (en) 2018-05-04 2018-07-13 Access request processing method, apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN108762917A (en)
WO (1) WO2019210580A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871708A (en) * 2018-12-15 2019-06-11 平安科技(深圳)有限公司 Data transmission method, device, electronic equipment and storage medium
CN109842686B (en) * 2019-03-05 2021-08-06 国家电网有限公司信息通信分公司 Load balancing system for realizing cross-regional cluster scheduling
US10887380B2 (en) * 2019-04-01 2021-01-05 Google Llc Multi-cluster ingress
CN110278133B (en) * 2019-07-31 2021-08-13 中国工商银行股份有限公司 Checking method, device, computing equipment and medium executed by server
CN110515731A (en) * 2019-08-22 2019-11-29 北京浪潮数据技术有限公司 A kind of data processing method, apparatus and system
CN110677353B (en) * 2019-09-06 2022-11-22 中国平安财产保险股份有限公司 Data access method and system
CN111031129B (en) * 2019-12-12 2022-04-05 北京金山云网络技术有限公司 Access request processing method, processing device, electronic equipment and storage medium
CN111177513B (en) * 2019-12-31 2023-10-31 北京百度网讯科技有限公司 Determination method and device of abnormal access address, electronic equipment and storage medium
CN112732491B (en) * 2021-01-22 2024-03-12 中国人民财产保险股份有限公司 Data processing system and business data processing method based on data processing system
CN112799931B (en) * 2021-03-15 2021-08-10 北京视界云天科技有限公司 Log collection method, device, system, medium and electronic equipment
CN113626280B (en) * 2021-06-30 2024-02-09 广东浪潮智慧计算技术有限公司 Cluster state control method and device, electronic equipment and readable storage medium
CN115525657B (en) * 2022-10-12 2023-07-11 合肥九韶智能科技有限公司 Extensible network request message and forwarding system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468777A (en) * 2014-12-05 2015-03-25 北京奇虎科技有限公司 Data operating method and device
CN104811503A (en) * 2015-05-21 2015-07-29 龙信数据(北京)有限公司 R statistical modeling system
CN106817408A (en) * 2016-12-27 2017-06-09 中国银联股份有限公司 A kind of distributed server cluster dispatching method and device
WO2017157156A1 (en) * 2016-03-14 2017-09-21 阿里巴巴集团控股有限公司 Method and apparatus for processing user requests

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468777A (en) * 2014-12-05 2015-03-25 北京奇虎科技有限公司 Data operating method and device
CN104811503A (en) * 2015-05-21 2015-07-29 龙信数据(北京)有限公司 R statistical modeling system
WO2017157156A1 (en) * 2016-03-14 2017-09-21 阿里巴巴集团控股有限公司 Method and apparatus for processing user requests
CN106817408A (en) * 2016-12-27 2017-06-09 中国银联股份有限公司 A kind of distributed server cluster dispatching method and device

Also Published As

Publication number Publication date
CN108762917A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
WO2019210580A1 (en) Access request processing method, apparatus, computer device, and storage medium
CN108737270B (en) Resource management method and device for server cluster
US11888794B2 (en) Method and system for resolving producer and consumer affinities in interaction servicing
CN112000448A (en) Micro-service architecture-based application management method
US8112659B2 (en) Reducing recovery time for business organizations in case of disasters
US7225356B2 (en) System for managing operational failure occurrences in processing devices
US10798218B2 (en) Environment isolation method and device
US20130007506A1 (en) Managing recovery virtual machines in clustered environment
US11398989B2 (en) Cloud service for cross-cloud operations
CN109802986B (en) Equipment management method, system, device and server
CN110297867B (en) Database cluster operation method and system based on domestic CPU and distributed container cluster
CA3138764A1 (en) Data processing method, device, computer equipment and storage medium
CN112492022A (en) Cluster, method, system and storage medium for improving database availability
CN112953982B (en) Service processing method, service configuration method and related device
CN113014611A (en) Load balancing method and related equipment
JP2016177324A (en) Information processing apparatus, information processing system, information processing method, and program
US11153173B1 (en) Dynamically updating compute node location information in a distributed computing environment
EP3306471B1 (en) Automatic server cluster discovery
CN114338670B (en) Edge cloud platform and network-connected traffic three-level cloud control platform with same
CN113242299A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN114760360A (en) Request response method and device, electronic equipment and computer readable storage medium
CN112910796A (en) Traffic management method, apparatus, device, storage medium, and program product
US20190007482A1 (en) Systems and methods for cross-cluster service provision
CN102868594A (en) Method and device for message processing
US8799926B1 (en) Active node detection in a failover computing environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18917189

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18917189

Country of ref document: EP

Kind code of ref document: A1