Distributed system, data aggregation method and computer readable storage medium
A distributed system and computer program technology, applied in the computer field, can solve the problems of hang up, not considering the memory pressure of the coordinator node, and the instability of the coordinator node, so as to reduce the risk of hang up and the effect of reducing the memory pressure.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] figure 1 Schematically shows a block diagram of a data aggregation system according to Embodiment 1 of the present invention, as shown in figure 1 As shown, the distributed system may include several query nodes 101, the query nodes 101 are used to receive query requests sent by users, and the query nodes 101 that receive the query requests are called coordinating nodes 102, wherein:
[0031] The coordinating node 102 is configured to: parse the query request to determine the target index segment pointed to by the query request, obtain segment information of the target index segment, and determine a query node that locally stores the target index segment 101. As a target node 103, construct a query subrequest according to the fragment information, and send the query subrequest to the target node 103.
[0032] Wherein, the target node 103 is also a query node 101 .
[0033] In this embodiment, if the index label is carried in the query request, the coordinating node 10...
Embodiment 2
[0053] Embodiment 2 of the present invention provides a data aggregation method. Part of the steps of the data aggregation method are the same as those in the above-mentioned embodiment 1. These steps will not be repeated in this embodiment. For details, please refer to the above-mentioned embodiment. one. specifically, figure 2 Schematically shows a flow chart of a data aggregation method according to Embodiment 2 of the present invention, as figure 2 As shown, the data aggregation method described in the second embodiment may include steps S21 to S25, wherein:
[0054] Step S21, receiving the query request sent by the coordinating node as the first query request.
[0055] Step S22, parsing the first query request to obtain fragmentation information.
[0056] Step S23, locating a locally stored target index segment according to the segment information.
[0057] Step S24, running the target index segment to obtain the query result requested by the first query request.
...
Embodiment 3
[0063] Embodiment 3 of the present invention provides a data aggregation method. Part of the steps of the data aggregation method are the same as the steps in the above-mentioned embodiment 1. These steps will not be repeated in this embodiment. For details, please refer to the above-mentioned embodiment one. specifically, image 3 Schematically shows a flow chart of the data aggregation method according to Embodiment 3 of the present invention, as image 3 As shown, the data aggregation method described in the third embodiment may include steps S31 to S36, wherein:
[0064] Step S31, receiving the query request sent by the user as a second query request.
[0065] Step S32, parsing the second query request to determine the target index segment pointed to by the second query request.
[0066] Step S33, acquiring the segment information of the target index segment.
[0067] Step S34, determining the node locally storing the target index fragment as the target node.
[0068]...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


