CN117909143A - Method and device for processing project data, storage medium and electronic equipment - Google Patents
Method and device for processing project data, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN117909143A CN117909143A CN202410033405.9A CN202410033405A CN117909143A CN 117909143 A CN117909143 A CN 117909143A CN 202410033405 A CN202410033405 A CN 202410033405A CN 117909143 A CN117909143 A CN 117909143A
- Authority
- CN
- China
- Prior art keywords
- item
- target
- processing server
- processing
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 631
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000004044 response Effects 0.000 claims description 27
- 230000002159 abnormal effect Effects 0.000 claims description 21
- 230000015654 memory Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 15
- 238000013500 data storage Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 13
- 230000001960 triggered effect Effects 0.000 claims description 9
- 230000000694 effects Effects 0.000 abstract description 14
- 230000008569 process Effects 0.000 description 12
- 238000003672 processing method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 206010033799 Paralysis Diseases 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2025—Failover techniques using centralised failover control functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2028—Failover techniques eliminating a faulty processor or activating a spare
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2097—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements maintaining the standby controller/processing unit updated
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Hardware Redundancy (AREA)
Abstract
The application discloses a method and a device for processing project data, a storage medium and electronic equipment. Wherein the method comprises the following steps: receiving a target processing request for a target item; determining a target item processing server associated with a target item from the item processing server cluster; under the condition that the target project processing server is detected to be in a normal running state, sending a target processing request to the target project processing server; and receiving an operation result of the target operation, and synchronizing the operation result to a reference item processing server in the item processing server cluster for backup, wherein the reference item processing server comprises full data stored in an item database corresponding to each item processing server in the item processing server cluster. The application solves the technical problem of poor project data processing effect.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a method and apparatus for processing project data, a storage medium, and an electronic device.
Background
Currently, for processing item data in an item request triggered by a user in a browser (for example, modifying, deleting, adding, creating a new item or deleting a request of an existing item), a related art provides a processing manner that a server of distributed service desk software (Jira SERVICE DESK, abbreviated as Jira) is utilized to process the item data.
However, with the project data processing method provided in the related art, since each Jira server in the distributed Jira servers depends on the same set of database service and storage service, once any one of the database service or storage service fails, it will cause a failure to process the project data.
In other words, the project data processing method provided in the related art still has the technical problem of poor project request data processing effect caused by the excessively solidified design of the processing architecture.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing project data, a storage medium and electronic equipment, which are used for at least solving the technical problem of poor project data processing effect.
According to an aspect of the embodiment of the present application, there is provided a method for processing project data, including: receiving a target processing request for a target item, wherein the target processing request is used for requesting to execute target operation on target data of the target item; determining a target item processing server associated with a target item from an item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases; under the condition that the target project processing server is detected to be in a normal running state, sending a target processing request to the target project processing server, wherein the target project processing server executes target operation on project data of a target project in a configured target project database according to the target processing request; and receiving an operation result of the target operation, and synchronizing the operation result to a reference item processing server in the item processing server cluster for backup, wherein the reference item processing server comprises full data stored in an item database corresponding to each item processing server in the item processing server cluster.
Optionally, in this embodiment, after determining the target item processing server associated with the target item from the item processing server cluster, the method further includes: in the case where the target item processing server is in an abnormal operation state, the target processing request is transmitted to a reference item processing server for replacing the target item processing server, wherein the reference item processing server performs a target operation on item data of the target item in the configured reference item database according to the target processing request.
Optionally, in this embodiment, after determining the target item processing server associated with the target item, the method further includes: receiving running state response data returned by a target item processing server in response to a running state detection request, wherein the running state detection request is a periodically triggered polling request; determining that the target item processing server is in a normal running state under the condition that the running state response data indicates that the running state parameter matched with the target item processing server is a first value; and determining that the target item processing server is in an abnormal operation state under the condition that the operation state response data indicates that the operation state parameter matched with the target item processing server is a second value.
Optionally, in this embodiment, determining, from the project processing server cluster, a target project processing server associated with the target project includes: analyzing the target processing request to obtain the item identification of the target item; determining a data storage position of item data of the target item under the condition that the target item is determined to be a created history item based on the item identification of the target item; and determining the item processing server corresponding to the item database where the data storage position is located as a target item processing server.
Optionally, in this embodiment, determining, from the project processing server cluster, a target project processing server associated with the target project includes: analyzing the target processing request to obtain the item identification of the target item; under the condition that the target item is determined to be a new item which is not yet created based on the item identification of the target item, acquiring the data processing capacity corresponding to each item processing server in the item processing server cluster; and determining a target item processing server from the item processing server cluster according to the data processing capacity corresponding to each item processing server, wherein the target item is created in a target item database configured by the target item processing server.
Optionally, in this embodiment, determining, according to the data processing capability corresponding to each item processing server, the target item processing server from the item processing server cluster includes: when the data processing capacity corresponding to each item processing server indicates the load rate of the item processing server, determining the item processing server corresponding to the lowest load rate as a target item processing server; or, under the condition that the data processing capacity corresponding to each item processing server indicates the maximum item request quantity of the item processing server, acquiring the current item request quantity currently processed by each item processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for project data, including: a first receiving unit configured to receive a target processing request for a target item, wherein the target processing request is used to request execution of a target operation on target data of the target item; a determining unit, configured to determine a target item processing server associated with a target item from an item processing server cluster, where the item processing server cluster includes a plurality of item processing servers, and each of the plurality of item processing servers is configured with an independent item database; a transmitting unit configured to transmit a target processing request to a target item processing server in a case where it is detected that the target item processing server is in a normal operation state, wherein the target item processing server is to perform a target operation on item data of a target item in a configured target item database according to the target processing request; and the second receiving unit is used for receiving the operation result of the target operation, and synchronizing the operation result to a reference item processing server in the item processing server cluster for backup, wherein the reference item processing server comprises all data stored in item databases corresponding to each item processing server in the item processing server cluster.
Optionally, in this embodiment, the apparatus further includes: and a first transmitting unit configured to transmit a target processing request to a reference item processing server for replacing the target item processing server in a case where the target item processing server is in an abnormal operation state, wherein the reference item processing server is to perform a target operation on item data of a target item in a configured reference item database according to the target processing request.
Optionally, in this embodiment, the apparatus further includes: the third receiving unit is used for receiving running state response data returned by the target item processing server in response to a running state detection request, wherein the running state detection request is a periodically triggered polling request; the first determining unit is used for determining that the target project processing server is in a normal running state under the condition that the running state response data indicate that the running state parameter matched with the target project processing server is a first value; and a third determining unit configured to determine that the target item processing server is in an abnormal operation state, in a case where the operation state response data indicates that the operation state parameter matched with the target item processing server is a second value.
Alternatively, in the present embodiment, the above-described determination unit includes: the first analysis module is used for analyzing the target processing request to obtain the item identification of the target item; a first determining module, configured to determine a data storage location of item data of a target item in a case where it is determined that the target item is a created history item based on an item identification of the target item; and the second determining module is used for determining the item processing server corresponding to the item database where the data storage position is located as a target item processing server.
Optionally, in this embodiment, the determining unit further includes: the second analysis module is used for analyzing the target processing request to obtain the item identification of the target item; the acquisition module is used for acquiring the data processing capacity corresponding to each item processing server in the item processing server cluster under the condition that the target item is determined to be a new item which is not created based on the item identification of the target item; and the third determining module is used for determining a target item processing server from the item processing server cluster according to the data processing capacity corresponding to each item processing server, wherein the target item is created in a target item database configured by the target item processing server.
Optionally, in this embodiment, the third determining module is further configured to determine, when the data processing capability corresponding to each item processing server indicates a load rate of the item processing server, the item processing server corresponding to the lowest load rate as the target item processing server; acquiring the current project request quantity currently processed by each project processing server under the condition that the data processing capacity corresponding to each project processing server indicates the maximum project request quantity of the project processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described item data processing method when run.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the above-described processing method of item data by the computer program.
In an embodiment of the application, a target processing request for a target item is received, wherein the target processing request is used for requesting to execute a target operation on the target item. Then, a target item processing server associated with the target item is determined from the item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases. Then, in the case that the target item processing server is detected to be in a normal operation state, a target processing request is transmitted to the target item processing server, wherein the target item processing server is to perform a target operation on item data of a target item in a configured target item database according to the target processing request. And further, receiving an operation result of the target operation, and synchronizing the operation result to a reference project processing server in the project processing server cluster for backup, wherein the reference project processing server comprises the full data stored in the project database corresponding to each project processing server in the project processing server cluster. In other words, by adopting the embodiment of the application, the problem that once the database is in question, the project processing server cluster is paralyzed and the project data cannot be processed due to the fact that all the servers in the project processing server cluster depend on the same database is avoided by configuring an independent project database for each server in the project processing server cluster. Further, by adopting the embodiment of the application, the target processing request is sent to the target item processing server only when the target item processing server is detected to be in the normal running state, and the target item processing server is utilized to process the item data of the target item. Therefore, the problem of low processing efficiency of the project data caused by the fact that the project data of the target project cannot be processed in time due to the fact that the target processing request is distributed to the server with the fault is avoided. Still further, in the embodiment of the present application, after the target item processing server processes the item data of the target item, the operation result is synchronized to the reference item processing server to backup, so that in case of failure of the target item processing server, the next target data can be processed according to the backup content in the reference item processing server. In summary, the embodiment of the application solves the technical problem of poor project data processing effect in the prior art, and improves the project data processing effect.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative method of processing project data according to an embodiment of the application;
FIG. 2 is a schematic diagram of an alternative method of processing project data according to an embodiment of the application;
FIG. 3 is a schematic diagram of an alternative method of processing project data according to an embodiment of the application;
FIG. 4 is a schematic diagram of an alternative method of processing project data according to an embodiment of the application;
FIG. 5 is a schematic diagram of an alternative method of processing project data according to an embodiment of the application;
FIG. 6 is a schematic diagram of an alternative project data processing apparatus according to an embodiment of the application;
Fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Optionally, as an alternative, as shown in fig. 1, the method for processing project data includes:
s102, receiving a target processing request for a target item, wherein the target processing request is used for requesting to execute target operation on target data of the target item.
It should be noted that the above method for processing project data may be applied to, but not limited to, a processing scenario for project data in project management engineering. For example, assuming that an item is used to instruct an in-vehicle electronic control unit (Electronic Control Unit, abbreviated as ECU) software to update the item, the above-mentioned item data processing method may be applied, but is not limited to, in the vehicle 202 as shown in fig. 2, in a case where a user triggers a request for updating the ECU software through a foreground interface in the in-vehicle display device 204, to update data in the ECU software to be updated indicated in the request for updating the ECU software. It should be noted that the foregoing examples are only provided for convenience of explanation of an alternative embodiment, and the above items may be other items, which are not limited in this embodiment.
Further, the above-described target processing request may be, but is not limited to, a request for indicating a target operation of target data of a target item triggered by a foreground, such as a browser, or the like. The target data may be, but is not limited to, project data indicating attribution and target project. The above-described target operation may be, but is not limited to, an operation for instructing to create target data of a target item, to add data to target data of a target item, to delete target data of a target item, to modify target data of a target item, and the like, and is not limited in this embodiment.
S104, determining a target item processing server associated with the target item from the item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases.
In this embodiment, the project processing server cluster is a background processing server configured for the project group where the target project is located. The respective item processing servers included in the item processing server cluster may be, but not limited to, servers using service desk software (Jira SERVICE DESK, abbreviated as Jira), or other servers having similar functions, which are not limited in this embodiment. Each server in the project processing server cluster is also configured with a respective Web service, storage service, and database service, respectively.
Optionally, in this embodiment, the determining, from the project processing server cluster, the target project processing server associated with the target project may include, but is not limited to: analyzing the target processing request to obtain the item identification of the target item, and further determining the data storage position of the item data of the target item under the condition that the target item is determined to be the created history item based on the item identification of the target item. And determining the item processing server corresponding to the item database where the data storage position is located as a target item processing server.
Further, in this embodiment, the determining, from the project processing server cluster, the target project processing server associated with the target project may, but is not limited to, further include: and analyzing the target processing request to obtain the item identification of the target item. Then, under the condition that the target item is determined to be a new item which is not yet created based on the item identification of the target item, the data processing capacity corresponding to each item processing server in the item processing server cluster is acquired. Then, according to the data processing capacity corresponding to each item processing server, a target item processing server is determined from the item processing server cluster, wherein the target item is created in a target item database configured by the target item processing server.
And S106, when the target project processing server is detected to be in a normal running state, sending a target processing request to the target project processing server, wherein the target project processing server executes target operation on project data of a target project in the configured target project database according to the target processing request.
In this embodiment, after determining the target item processing server associated with the target item from the item processing server cluster, the method further includes: in the case where the target item processing server is in an abnormal operation state, the target processing request is transmitted to a reference item processing server for replacing the target item processing server, wherein the reference item processing server performs a target operation on item data of the target item in the configured reference item database according to the target processing request.
S108, receiving an operation result of the target operation, and synchronizing the operation result to a reference project processing server in the project processing server cluster for backup, wherein the reference project processing server comprises full data stored in project databases corresponding to each project processing server in the project processing server cluster.
Alternatively, in the present embodiment, the target processing request of the target item transmitted by the user is received using the proxy server as an intermediate proxy, and the target processing request of the target item is distributed to the item processing server. After the project processing server executes the target operation on the target data of the target project, the proxy server is utilized to return the operation result including the completion condition for indicating the target operation to the user.
Further, in the present embodiment, the proxy server is also configured with a separate database and data service. For example, assume that each server in the project processing server cluster described above employs Jira servers. It is assumed that the project processing server cluster includes 3 servers, which are denoted by Jira server 1, jira server 2, and Jira server 3. The architecture formed by the proxy server and the project processing server cluster may be, but not limited to, as shown in fig. 3, wherein Jira server 1 includes Web service 1, storage service 1, and database service 1; jira the server 2 comprises a Web service 2, a storage service 2 and a database service 2, and the Jira server 3 comprises a Web service 3, a storage service 3 and a database service 3; the proxy server corresponds to a proxy database service.
In this embodiment, the operation result may include, but is not limited to, item data obtained after the target operation is performed on the target data and an instruction for instructing to perform the target operation, for example, if the target operation is an operation for newly building item data of the target item, the operation result includes an instruction for instructing to perform the target operation and the newly built item data. Assuming that the target operation is an operation of modifying item data in the target item, the operation result includes an instruction for instructing to execute the target operation and the modified item data.
Alternatively, as an optional implementation manner, it is assumed that the above-mentioned processing method of project data may be applied, but not limited to, in a project management project, where the above-mentioned method is exemplified by the following steps as shown in fig. 4:
Steps S402 to S404 are executed, and the client 402 generates a target processing request for the target item in response to the user' S operation on the target item displayed in the browser. Client 402 sends a target processing request to proxy server 404.
Then, steps S406 to S410 are executed, and the proxy server 404, upon receiving the target processing request, parses the target processing request to parse out the request information. Wherein the request information includes: identification information of a target item, the type of target operation (e.g., read, write, etc.), a module capable of executing the target operation in the item processing server, item data (e.g., data to be modified, data to be deleted, data to be newly added, etc.) required to execute the target operation, and data (e.g., data to be newly added, etc.) required to execute the target operation. The proxy server 404 determines a target item processing server associated with the target item from the cluster of item processing servers. The proxy server 404 transmits the request information to the target item processing server 406 when detecting that the target item processing server is in a normal operation state.
Further, steps S412 to S414 are performed, and the target item processing server 406 performs a target operation on item data of the target item in the configured target item database according to the request content. The target item processing server 406 transmits the operation result corresponding to the target operation to the proxy server 404.
Steps S416-S418 are then performed, and the proxy server 404 transmits the operation result to the client 402. The proxy server 404 transmits the operation result to the reference item processing server 408.
Thereby performing step S420, the reference item processing server 408 updates the item data of the locally stored target item in the reference database based on the operation result.
In an embodiment of the application, a target processing request for a target item is received, wherein the target processing request is used for requesting to execute a target operation on the target item. Then, a target item processing server associated with the target item is determined from the item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases. Then, in the case that the target item processing server is detected to be in a normal operation state, a target processing request is transmitted to the target item processing server, wherein the target item processing server is to perform a target operation on item data of a target item in a configured target item database according to the target processing request. And further, receiving an operation result of the target operation, and synchronizing the operation result to a reference project processing server in the project processing server cluster for backup, wherein the reference project processing server comprises the full data stored in the project database corresponding to each project processing server in the project processing server cluster. In other words, by adopting the embodiment of the application, the problem that once the database is in question, the project processing server cluster is paralyzed and the project data cannot be processed due to the fact that all the servers in the project processing server cluster depend on the same database is avoided by configuring an independent project database for each server in the project processing server cluster. Further, by adopting the embodiment of the application, the target processing request is sent to the target item processing server only when the target item processing server is detected to be in the normal running state, and the target item processing server is utilized to process the item data of the target item. Therefore, the problem of low processing efficiency of the project data caused by the fact that the project data of the target project cannot be processed in time due to the fact that the target processing request is distributed to the server with the fault is avoided. Still further, in the embodiment of the present application, after the target item processing server processes the item data of the target item, the operation result is synchronized to the reference item processing server to backup, so that in case of failure of the target item processing server, the next target data can be processed according to the backup content in the reference item processing server. In summary, the embodiment of the application solves the technical problem of poor project data processing effect in the prior art, and improves the project data processing effect.
Optionally, in this embodiment, after determining the target item processing server associated with the target item from the item processing server cluster, the method further includes:
in the case where the target item processing server is in an abnormal operation state, the target processing request is transmitted to a reference item processing server for replacing the target item processing server, wherein the reference item processing server performs a target operation on item data of the target item in the configured reference item database according to the target processing request.
It should be noted that, the target item processing server being in the abnormal operation state may be, but not limited to, used to indicate that the target item processing server has a fault, for example, a hard disk fault, a memory fault, a CPU fault, an operating system fault, a network fault, and the like, which causes the target item processing server to fail to operate normally.
Optionally, after the sending the target processing request to the reference item processing server for replacing the target item processing server, the method further includes: the reference item processing server will perform a target operation on item data of the target item in the configured reference item database according to the target processing request.
In the embodiment of the application, in the case that the target item processing server is in an abnormal operation state, the target processing request is sent to a reference item processing server for replacing the target item processing server, wherein the reference item processing server performs target operation on item data of a target item in a configured reference item database according to the target processing request. That is, in the embodiment of the present application, when the target item processing server is in an abnormal operation state, the reference item processing server is used to replace a mode that the target item processing server performs a target operation on target data, so that the target data can be timely processed, and further, the technical effect of improving the processing efficiency of the target data is achieved.
Optionally, in this embodiment, after determining the target item processing server associated with the target item, the method further includes:
S1, receiving running state response data returned by a target item processing server in response to a running state detection request, wherein the running state detection request is a periodically triggered polling request.
S2, determining that the target project processing server is in a normal running state under the condition that the running state response data indicates that the running state parameter matched with the target project processing server is a first value.
And S3, determining that the target project processing server is in an abnormal operation state under the condition that the operation state response data indicates that the operation state parameter matched with the target project processing server is a second value.
It should be noted that, in this embodiment, the proxy server may periodically send a polling request to each server in the item processing server cluster to obtain status response data returned by each server in the item processing server cluster. Wherein, the state response data comprises the operation state parameters of the project processing server. Further, the above-mentioned operation state parameters may be, but are not limited to, a CPU load, a memory usage amount, a network connection parameter, etc. of the project processing server, which is not limited in this embodiment.
Alternatively, in the present embodiment, the first value may be, but not limited to, a normal range of values for indicating the operation state parameter, and the second value may be, but not limited to, a range of abnormal values for indicating the operation state parameter. For example, assuming that the operating state parameter is a CPU load factor, the first value may be [0, 80%), and the second value may be [80%,100% ]. And when the CPU load rate of the target project processing server is [0, 80%), determining that the target project processing server is in a normal running state. And when the CPU load rate of the target item processing server is 80 percent and 100 percent, determining that the target item processing server is in an abnormal operation state.
Further, after the determining that the target item processing server is in the abnormal operation state, the method further includes: and sending prompt information for prompting that the target item processing server is in an abnormal operation state to the management terminal. Specifically, the prompt information may be sent by, but not limited to, mail, short message, or the like.
In the embodiment of the application, the running state response data returned by the target item processing server in response to the running state detection request is received, wherein the running state detection request is a periodically triggered polling request. Then, in the case where the operation state response data indicates that the operation state parameter matched with the target item processing server is the first value, it is determined that the target item processing server is in the normal operation state. Then, in the case where the operation state response data indicates that the operation state parameter matched with the target item processing server is the second value, it is determined that the target item processing server is in an abnormal operation state. In other words, in the embodiment of the application, the running state of the item processing server is periodically detected by means of polling detection, so that the item processing server can be timely and flexibly adopted to process item data corresponding to the item processing server when the item processing server is in an abnormal running state, and the abnormal item processing server can be timely maintained. And further, the technical effects of flexibility of project data processing and stability of the project processing server cluster are improved.
Optionally, in this embodiment, determining, from the project processing server cluster, a target project processing server associated with the target project includes:
s1, analyzing the target processing request to obtain the item identification of the target item.
S2, determining a data storage position of item data of the target item when the target item is determined to be the created history item based on the item identification of the target item.
S3, determining the item processing server corresponding to the item database where the data storage position is located as a target item processing server.
Alternatively, in this embodiment, the proxy server may, but is not limited to, associate different items to different item processing servers according to processing weights that are assigned in advance to the respective item processing servers in the item processing server cluster. And storing the association relationship between the item and the associated item processing server in a proxy database of the proxy server. Specifically, the association relationship includes: item identification of the item, item database identification stored by the item, item processing server identification associated with the item.
It should be further noted that, after the item identifier of the target item is obtained, the target item processing server may be determined directly by the item processing server identifier associated with the item without obtaining the data storage location of the item data of the target item, which is not limited in this embodiment.
In the embodiment of the application, the target processing request is analyzed to obtain the item identification of the target item. Then, in the case where it is determined that the target item is a created history item based on the item identification of the target item, a data storage location of item data of the target item is determined. Then, the item processing server corresponding to the item database in which the data storage location is located is determined as the target item processing server. That is, in the embodiment of the present application, the purpose of quickly determining the item processing server is achieved by acquiring the item processing server associated with the target item through the item identification of the target item. Further, the technical effect of improving the processing efficiency of the project data is achieved.
Optionally, in this embodiment, determining, from the project processing server cluster, a target project processing server associated with the target project includes:
And analyzing the target processing request to obtain the item identification of the target item.
And under the condition that the target item is determined to be a new item which is not created yet based on the item identification of the target item, acquiring the data processing capacity corresponding to each item processing server in the item processing server cluster.
And determining a target item processing server from the item processing server cluster according to the data processing capacity corresponding to each item processing server, wherein the target item is created in a target item database configured by the target item processing server.
It should be noted that, the determining, based on the item identifier of the target item, that the target item is a new item that has not been created may include, but is not limited to: the proxy server does not find the item identification of the target item in the proxy database.
Further, the determining, according to the data processing capability corresponding to each item processing server, the target item processing server from the item processing server cluster may include, but is not limited to: when the data processing capacity corresponding to each item processing server indicates the load rate of the item processing server, determining the item processing server corresponding to the lowest load rate as a target item processing server; or, under the condition that the data processing capacity corresponding to each item processing server indicates the maximum item request quantity of the item processing server, acquiring the current item request quantity currently processed by each item processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers.
In the embodiment of the application, the target processing request is analyzed to obtain the item identification of the target item. Then, under the condition that the target item is determined to be a new item which is not yet created based on the item identification of the target item, the data processing capacity corresponding to each item processing server in the item processing server cluster is acquired. Then, according to the data processing capacity corresponding to each item processing server, a target item processing server is determined from the item processing server cluster, wherein the target item is created in a target item database configured by the target item processing server. In other words, in the embodiment of the present application, when the target item is a new item, the target item processing server is quickly allocated to the new item by determining the target item processing server for processing the item data of the target item by using the data processing capability corresponding to the item processing server. And the target item processing server can establish the target item and the item data of the target item as soon as possible, thereby achieving the technical effect of improving the processing efficiency of the item data.
Optionally, in this embodiment, determining, according to the data processing capability corresponding to each item processing server, the target item processing server from the item processing server cluster includes:
when the data processing capacity corresponding to each item processing server indicates the load rate of the item processing server, determining the item processing server corresponding to the lowest load rate as a target item processing server; or alternatively, the first and second heat exchangers may be,
Acquiring the current project request quantity currently processed by each project processing server under the condition that the data processing capacity corresponding to each project processing server indicates the maximum project request quantity of the project processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers.
It should be noted that the maximum number of item requests may be, but not limited to, the maximum number of item requests that can be simultaneously processed and that are pre-allocated to the item processing server. In the case where there are a plurality of item processing servers whose current item request number has not reached the maximum item request number, the above-mentioned determining the item processing server whose current item request number has not reached the maximum item request number as the target item processing server may include, but is not limited to: the item processing servers for which the current number of item requests has not reached the maximum number of item requests are determined as available item processing servers. And determining the item processing server with the largest difference between the maximum item request quantity and the current item request quantity in the available item processing servers as a target item processing server.
Alternatively, as an alternative embodiment, it is assumed that the data processing capability corresponding to each item processing server is indicated as the load rate of the item processing server, and it is assumed that each server in the above-mentioned item processing server cluster adopts a Jira server. It is assumed that the above-mentioned item processing server cluster includes 3 servers, which are divided into Jira servers 1, jira servers 2, jira servers 3, wherein Jira server 3 is a reference item server. The above method is illustrated by the following steps: the current load rates of the Jira server 1 and the Jira server 2 are respectively 40% and 70%, and then the item processing server with the lowest load rate in the item processing server cluster is determined to be the Jira server 1. Thereby determining Jira server 1 as the target item processing server.
Further, as another alternative embodiment, it is assumed that the data processing capability corresponding to each item processing server is indicated as the maximum item request number of the item processing servers, and that the above-mentioned item processing server cluster includes 3 servers, which are classified into Jira servers 1, jira servers 2, jira servers 3, jira servers 4, and Jira servers 4 are reference item servers. The above method is illustrated by the following steps: the maximum number of item requests to be acquired Jira server 1, jira server 2, jira server 3 is 10, 20, 30, respectively. The current item request numbers of the acquisition Jira server 1, jira server 2, jira server 3 are 5, 8 and 30 respectively. Thereby determining Jira server 1, jira server 2 as the available item processing server. Then, the difference between the maximum item request number 10 and the current item request number 5 of the server 1 is acquired Jira, and the difference between the maximum item request number 20 and the current item request number 8 of the server 2 is acquired Jira as 12. Thereby determining Jira that the difference 12 between the maximum number of item requests of server 2 and the current number of item requests is the largest, and determining Jira server 2 as the target item processing server.
In the embodiment of the application, under the condition that the data processing capacity corresponding to each item processing server is indicated as the load rate of the item processing server, the item processing server corresponding to the lowest load rate is determined as the target item processing server; or, under the condition that the data processing capacity corresponding to each item processing server indicates the maximum item request quantity of the item processing server, acquiring the current item request quantity currently processed by each item processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers. In other words, in the embodiment of the present application, the manner of determining the target item processing server that will process the item data of the target item is determined by using the load rate of the item processing servers or the maximum number of item requests that can be processed by the item processing servers, so that each item processing server in the item processing server cluster can be evenly allocated to process different item data. The problem that the project data cannot be processed in time due to insufficient processing capacity of the project processing server is avoided, and therefore the processing effect of the project data is improved.
Alternatively, as an alternative embodiment, the above-mentioned project data processing method may be integrally illustrated and described based on the specific modules included in the proxy server as shown in fig. 5, and the steps performed by the respective modules as shown in fig. 5:
The proxy server comprises the following modules: the specific operations performed by the receiving module 502, the matching module 504, the forwarding module 506, and the data guarantee module 508 are as follows:
1) The receiving module 502 is configured to perform the following steps:
Step S502-1, receiving a processing request of item data of an item triggered by a user through a web browser;
step S502-2 is executed to analyze the request to obtain the request content;
Step S502-3 is performed to send the requested content to the matching module 504.
2) The matching module 504 is configured to perform the following steps:
Step S504-1, judging whether the item is a new item or not based on the request content;
Step S504-2-1, if not, the new project execution returns the IP address according to the agent database check result;
Step S504-2-2, if the new project is executed, determining the IP address of the server according to the project number on each server;
Step S504-3, the IP address is sent to the forwarding module 506.
3) The forwarding module 506 is configured to perform the following steps:
Step S506-1, forwarding the request content to Jira server corresponding to the IP address;
Step S506-2, receiving Jira a result returned after the server processes;
In step S506-3, the result is sent to the data assurance module 508.
4) The data guarantee module 508 is configured to perform the following steps:
S508-1, in the case where the request is a write request, the data is synchronized to the standby server (i.e., reference item processing server), and is not operated if it is a read request.
S508-2, polling all Jira servers of the service every 5S, and storing the running states of the service and the database service associated with the service. If an anomaly occurs, the administrator is notified by mail and the problematic server is automatically replaced with a standby server.
In this embodiment, by periodically polling the Jira servers, if there is an abnormality in the Jira servers, the maintenance personnel is directly notified to maintain the Jira servers. And uses the standby Jira server to handle processing requests for item data of the exception server. Therefore, the technical problem of poor project data processing effect in the prior art is solved, and the project data processing effect is improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for item data for implementing the above-mentioned processing method for item data. As shown in fig. 6, the apparatus includes:
A first receiving unit 602, configured to receive a target processing request for a target item, where the target processing request is used to request to perform a target operation on the target item;
A determining unit 604, configured to determine a target item processing server associated with a target item from an item processing server cluster, where the item processing server cluster includes a plurality of item processing servers, and each of the plurality of item processing servers is configured with an independent item database;
a sending unit 606, configured to send a target processing request to a target item processing server when it is detected that the target item processing server is in a normal operation state, where the target item processing server performs a target operation on item data of a target item in a configured target item database according to the target processing request;
And the second receiving unit 608 is configured to receive an operation result of the target operation, and synchronize the operation result to a reference item processing server in the item processing server cluster for backup, where the reference item processing server includes all data stored in item databases corresponding to each item processing server in the item processing server cluster.
Optionally, in this embodiment, the apparatus further includes: and a first transmitting unit configured to transmit a target processing request to a reference item processing server for replacing the target item processing server in a case where the target item processing server is in an abnormal operation state, wherein the reference item processing server is to perform a target operation on item data of a target item in a configured reference item database according to the target processing request.
Optionally, in this embodiment, the apparatus further includes: the third receiving unit is used for receiving running state response data returned by the target item processing server in response to a running state detection request, wherein the running state detection request is a periodically triggered polling request; the first determining unit is used for determining that the target project processing server is in a normal running state under the condition that the running state response data indicate that the running state parameter matched with the target project processing server is a first value; and a third determining unit configured to determine that the target item processing server is in an abnormal operation state, in a case where the operation state response data indicates that the operation state parameter matched with the target item processing server is a second value.
Alternatively, in the present embodiment, the above-described determination unit includes: the first analysis module is used for analyzing the target processing request to obtain the item identification of the target item; a first determining module, configured to determine a data storage location of item data of a target item in a case where it is determined that the target item is a created history item based on an item identification of the target item; and the second determining module is used for determining the item processing server corresponding to the item database where the data storage position is located as a target item processing server.
Optionally, in this embodiment, the determining unit further includes: the second analysis module is used for analyzing the target processing request to obtain the item identification of the target item; the acquisition module is used for acquiring the data processing capacity corresponding to each item processing server in the item processing server cluster under the condition that the target item is determined to be a new item which is not created based on the item identification of the target item; and the third determining module is used for determining a target item processing server from the item processing server cluster according to the data processing capacity corresponding to each item processing server, wherein the target item is created in a target item database configured by the target item processing server.
Optionally, in this embodiment, the third determining module is further configured to determine, when the data processing capability corresponding to each item processing server indicates a load rate of the item processing server, the item processing server corresponding to the lowest load rate as the target item processing server; acquiring the current project request quantity currently processed by each project processing server under the condition that the data processing capacity corresponding to each project processing server indicates the maximum project request quantity of the project processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as target project processing servers.
Specific embodiments may refer to examples shown in the above-mentioned method for processing item data, and this embodiment is not described herein.
According to still another aspect of the embodiment of the present application, there is further provided an electronic device for implementing the above method for processing item data, where the embodiment is described by taking the electronic device as a server as an example. As shown in fig. 7, the electronic device comprises a memory 702 and a processor 704, the memory 702 storing a computer program, the processor 704 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a target processing request for a target item, wherein the target processing request is used for requesting to execute target operation on the target item;
S2, determining a target item processing server associated with a target item from an item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases;
s3, under the condition that the target project processing server is detected to be in a normal running state, sending a target processing request to the target project processing server, wherein the target project processing server executes target operation on project data of a target project in a configured target project database according to the target processing request;
S4, receiving an operation result of the target operation, and synchronizing the operation result to a reference project processing server in the project processing server cluster for backup, wherein the reference project processing server comprises full data stored in project databases corresponding to each project processing server in the project processing server cluster.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 7 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for processing project data in the embodiment of the present application, and the processor 704 executes the software programs and modules stored in the memory 702, thereby executing various functional applications and data processing, that is, implementing the method for processing project data. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 702 may further include memory remotely located relative to the processor 704, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, a first receiving unit 602, a determining unit 604, a transmitting unit 606, and a second receiving unit 608 in the processing apparatus including the item data. In addition, other module units in the processing device of the project data may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 706 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 706 is a Radio Frequency (RF) module that is configured to communicate wirelessly with the internet.
In addition, the electronic device further includes: a display 708; and a connection bus 710 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. The nodes may form a point-to-point network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the point-to-point network.
According to one aspect of the present application, there is provided a computer program product comprising a computer program/instruction containing program code for performing the above method. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. When executed by a central processing unit, performs various functions provided by embodiments of the present application.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which computer instructions are read by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to perform the above-described method.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
s1, receiving a target processing request for a target item, wherein the target processing request is used for requesting to execute target operation on the target item;
S2, determining a target item processing server associated with a target item from an item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases;
s3, under the condition that the target project processing server is detected to be in a normal running state, sending a target processing request to the target project processing server, wherein the target project processing server executes target operation on project data of a target project in a configured target project database according to the target processing request;
S4, receiving an operation result of the target operation, and synchronizing the operation result to a reference project processing server in the project processing server cluster for backup, wherein the reference project processing server comprises full data stored in project databases corresponding to each project processing server in the project processing server cluster.
Alternatively, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program having a predetermined function, and works together with other relevant parts to achieve a predetermined object, and may be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Also, a processor (or multiple processors or memories) may be used to implement one or more modules or units. Furthermore, each module or unit may be part of an overall module or unit that incorporates the functionality of the module or unit.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-only memory (ROM), random-access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.
Claims (9)
1. A method of processing project data, comprising:
Receiving a target processing request for a target item, wherein the target processing request is used for requesting to execute target operation on target data of the target item;
Determining a target item processing server associated with the target item from an item processing server cluster, wherein the item processing server cluster comprises a plurality of item processing servers, and the plurality of item processing servers are respectively configured with independent item databases;
Transmitting the target processing request to the target item processing server under the condition that the target item processing server is detected to be in a normal running state, wherein the target item processing server executes the target operation on item data of the target item in a configured target item database according to the target processing request;
And receiving an operation result of the target operation, and synchronizing the operation result to a reference item processing server in the item processing server cluster for backup, wherein the reference item processing server comprises all data stored in item databases corresponding to each item processing server in the item processing server cluster.
2. The method of claim 1, further comprising, after said determining a target item processing server associated with said target item from a cluster of item processing servers:
And in the case that the target item processing server is in an abnormal operation state, transmitting the target processing request to the reference item processing server for replacing the target item processing server, wherein the reference item processing server is to perform the target operation on item data of the target item in a configured reference item database according to the target processing request.
3. The method of claim 1, further comprising, after said determining a target item processing server associated with said target item:
receiving running state response data returned by the target item processing server in response to a running state detection request, wherein the running state detection request is a periodically triggered polling request;
determining that the target item processing server is in the normal running state under the condition that the running state response data indicates that the running state parameter matched with the target item processing server is a first value;
and determining that the target item processing server is in an abnormal operation state under the condition that the operation state response data indicates that the operation state parameter matched with the target item processing server is a second value.
4. The method of claim 1, wherein the determining a target item processing server associated with the target item from a cluster of item processing servers comprises:
analyzing the target processing request to obtain the item identification of the target item;
Determining a data storage position of item data of the target item under the condition that the target item is determined to be a created history item based on the item identification of the target item;
And determining an item processing server corresponding to the item database where the data storage position is located as the target item processing server.
5. The method of claim 1, wherein the determining a target item processing server associated with the target item from a cluster of item processing servers comprises:
analyzing the target processing request to obtain the item identification of the target item;
under the condition that the target item is determined to be a new item which is not yet created based on the item identification of the target item, acquiring the data processing capacity corresponding to each item processing server in the item processing server cluster;
and determining the target item processing server from the item processing server cluster according to the data processing capacity corresponding to each item processing server, wherein the target item is created in the target item database configured by the target item processing server.
6. The method of claim 5, wherein determining the target item processing server from the cluster of item processing servers based on the respective data processing capabilities of the respective item processing servers comprises:
When the data processing capacity corresponding to each item processing server indicates the load rate of the item processing server, determining the item processing server corresponding to the lowest load rate as the target item processing server; or alternatively, the first and second heat exchangers may be,
Acquiring the current item request quantity currently being processed by each item processing server under the condition that the data processing capacity corresponding to each item processing server indicates the maximum item request quantity of the item processing server; and determining the project processing servers of which the current project request quantity does not reach the maximum project request quantity as the target project processing servers.
7. A processing apparatus for item data, comprising:
a first receiving unit configured to receive a target processing request for a target item, where the target processing request is used to request execution of a target operation on target data of the target item;
A determining unit, configured to determine a target item processing server associated with the target item from an item processing server cluster, where the item processing server cluster includes a plurality of item processing servers, and each of the plurality of item processing servers is configured with an independent item database;
A sending unit configured to send the target processing request to the target item processing server when it is detected that the target item processing server is in a normal operation state, where the target item processing server is to perform the target operation on item data of the target item in a configured target item database according to the target processing request;
And the second receiving unit is used for receiving the operation result of the target operation, and synchronizing the operation result to a reference item processing server in the item processing server cluster for backup, wherein the reference item processing server comprises all data stored in item databases corresponding to each item processing server in the item processing server cluster.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when executed by a processor, performs the method of any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410033405.9A CN117909143A (en) | 2024-01-09 | 2024-01-09 | Method and device for processing project data, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410033405.9A CN117909143A (en) | 2024-01-09 | 2024-01-09 | Method and device for processing project data, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117909143A true CN117909143A (en) | 2024-04-19 |
Family
ID=90696120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410033405.9A Pending CN117909143A (en) | 2024-01-09 | 2024-01-09 | Method and device for processing project data, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117909143A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118353717A (en) * | 2024-06-17 | 2024-07-16 | 北京火山引擎科技有限公司 | Network authentication method, system, device, medium and program product |
-
2024
- 2024-01-09 CN CN202410033405.9A patent/CN117909143A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118353717A (en) * | 2024-06-17 | 2024-07-16 | 北京火山引擎科技有限公司 | Network authentication method, system, device, medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108234170B (en) | Monitoring method and device for server cluster | |
CN107872402B (en) | Global flow scheduling method and device and electronic equipment | |
CN110389815A (en) | Task processing method, apparatus and system | |
CN111586090A (en) | Method, system, computer device and readable storage medium for industrial data acquisition | |
JP5268589B2 (en) | Information processing apparatus and information processing apparatus operating method | |
US10715628B2 (en) | Attribute operating method and device | |
CN114816914A (en) | Data processing method, equipment and medium based on Kubernetes | |
CN113364852B (en) | File transmission method and device and server | |
CN117909143A (en) | Method and device for processing project data, storage medium and electronic equipment | |
CN117492944A (en) | Task scheduling method and device, electronic equipment and readable storage medium | |
CN112087327B (en) | Information state acquisition method and apparatus, storage medium, and electronic apparatus | |
CN117130730A (en) | Metadata management method for federal Kubernetes cluster | |
CN110928679B (en) | Resource allocation method and device | |
CN103731315A (en) | Server failure detecting method | |
CN115103007A (en) | Distributed cloud-based service discovery method, device and readable storage medium | |
CN112260902B (en) | Network equipment monitoring method, device, equipment and storage medium | |
CN112202895B (en) | Method and system for collecting monitoring index data, electronic equipment and storage medium | |
CN104025628A (en) | Network system, node device group, sensor device group, and method for transmitting and receiving sensor data | |
CN109510730A (en) | Distributed system and its monitoring method, device, electronic equipment and storage medium | |
CN116610712A (en) | Credit information query method and device, storage medium and electronic device | |
CN115766715A (en) | High-availability super-fusion cluster monitoring method and system | |
CN114090293B (en) | Service providing method and electronic equipment | |
US11777810B2 (en) | Status sharing in a resilience framework | |
CN114157725B (en) | Method, device, server, electronic equipment and storage medium for equipment linkage | |
JP6926646B2 (en) | Inter-operator batch service management device and inter-operator batch service management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |