Distributed stream processing
AssigneeSAS Institute Inc.
InventorJoseph Albert F.S. Pingenot
Life of this patent
Estimating the term…
Abstract
In a computing device supporting distributed stream processing, a request is received from a controller device to redistribute blocks storing streamed data. The request indicates that a number of blocks stored on the computing device be sent to a second computing device. The controller device controls distribution of analytic results to a data access system. The analytic results are computed from the streamed data. The indicated number of blocks are selected from the blocks storing the streamed data. The selected blocks are sent to the second computing device. Pointers to remaining blocks of the blocks storing the streamed data are updated.
Claims30
A non-transitory computer-readable medium having stored thereon computer-readable instructions that when executed by a computing device cause the computing device to:
- receive a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- select the indicated number of blocks from the blocks storing the streamed data;
- send the selected blocks to the second computing device;
- after selecting the indicated number of blocks, calling a function of an analytic task process created to at least partially compute an analytic result of the analytic results from the streamed data, wherein the function handles a modification to the analytic result that results from sending the selected blocks to the second computing device;
- and
- update a pointer to remaining blocks of the blocks storing the streamed data.
A non-transitory computer-readable medium having stored thereon computer-readable instructions that when executed by a computing device cause the computing device to:
- receive a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- select the indicated number of blocks from the blocks storing the streamed data;
- send the selected blocks to the second computing device;
- update a pointer to remaining blocks of the blocks storing the streamed data;
- receive previously streamed data from a third computing device;
- obtain a block of memory from a list of free blocks;
- append the received previously streamed data to the obtained block of memory;
- and
- add the obtained block of memory to the remaining blocks of the blocks storing the streamed data.
A system comprising:
- a first computing device comprising
- a first processor;
- and
- a first non-transitory computer-readable medium operably coupled to the first processor, the first computer-readable medium having first computer-readable instructions stored thereon that, when executed by the first processor, cause the first computing device to
- receive a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the first computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- select the indicated number of blocks from the blocks storing the streamed data;
- send the selected blocks to the second computing device;
- and
- update a pointer to remaining blocks of the blocks storing the streamed data;
- and
- the controller device, wherein the controller device comprises:
- a second processor;
- and
- a second non-transitory computer-readable medium operably coupled to the second processor, the second computer-readable medium having second computer-readable instructions stored thereon that, when executed by the second processor, cause the controller device to
- send the request to the first computing device;
- and
- before sending the request to the first computing device,
- receive a first value indicating a number of the blocks storing streamed data on the first computing device;
- receive a second value indicating a number of blocks storing streamed data on the second computing device;
- compute a rebalancing value as an average of the received first value and the received second value;
- and
- compute the number of blocks stored on the first computing device to be sent to the second computing device based on the computed rebalancing value, wherein computing the number of blocks comprises:
- selecting a random number;
- and
- when the random number is less than 1−exp−C(Ni/N−1), the number of blocks stored on the first computing device to be sent to the second computing device is computed as Ni−N, wherein C is a rebalancing parameter, Ni is the received first value and N is the computed rebalancing value.
A system comprising:
- a first computing device comprising
- a first processor;
- and
- a first non-transitory computer-readable medium operably coupled to the first processor, the first computer-readable medium having first computer-readable instructions stored thereon that, when executed by the first processor, cause the first computing device to
- receive a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the first computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- select the indicated number of blocks from the blocks storing the streamed data;
- send the selected blocks to the second computing device;
- and
- update a pointer to remaining blocks of the blocks storing the streamed data;
- and
- the controller device, wherein the controller device comprises:
- a second processor;
- and
- a second non-transitory computer-readable medium operably coupled to the second processor, the second computer-readable medium having second computer-readable instructions stored thereon that, when executed by the second processor, cause the controller device to
- send the request to the first computing device;
- and
- before sending the request to the first computing device,
- receive a first value indicating a number of the blocks storing streamed data on the first computing device;
- receive a second value indicating a number of blocks storing streamed data on the second computing device;
- receive a third value indicating a number of blocks storing streamed data on a third computing device, wherein the number of blocks storing streamed data on the second computing device and the number of blocks storing streamed data on the third computing device are less than the number of blocks storing streamed data on the first computing device;
- compute a rebalancing value as an average of the received first value, the received second value, and the received third value;
- select a random number in a range defined by [0, 2N−(Na+Nb)), where N is the computed rebalancing value, Na is the number of blocks storing streamed data on the second computing device, and Nb is the number of blocks storing streamed data on the third computing device;
- compute the number of blocks stored on the first computing device to be sent to the second computing device based on the computed rebalancing value;
- and
- select the second computing device to receive the number of blocks stored on the first computing device to be sent to the second computing device based on the selected random number falling within a range defined by [0, N−Na).
A system comprising:
- a first computing device comprising
- a first processor;
- and
- a first non-transitory computer-readable medium operably coupled to the first processor, the first computer-readable medium having first computer-readable instructions stored thereon that, when executed by the first processor, cause the first computing device to
- receive a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the first computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- select the indicated number of blocks from the blocks storing the streamed data;
- send the selected blocks to the second computing device;
- and
- update a pointer to remaining blocks of the blocks storing the streamed data;
- and
- the controller device, wherein the controller device comprises:
- a second processor;
- and
- a second non-transitory computer-readable medium operably coupled to the second processor, the second computer-readable medium having second computer-readable instructions stored thereon that, when executed by the second processor, cause the controller device to
- send the request to the first computing device;
- and
- after sending the request to the first computing device,
- receive a first value indicating a number of the blocks storing streamed data on the first computing device;
- receive a second value indicating a number of blocks storing streamed data on the second computing device;
- receive a third value indicating a number of blocks storing streamed data on a third computing device;
- compute a rebalancing value as an average of the received first value, the received second value, and the received third value;
- compute the number of blocks stored on the first computing device to be sent to the second computing device based on the computed rebalancing value;
- select a random number in a range defined by [0, 2N−(Na+Nb)), where N is the computed rebalancing value, Na is the number of blocks storing streamed data on the first computing device, Nb is the number of blocks storing streamed data on the second computing device, and Nc is the number of blocks storing streamed data on the third computing device, wherein Na and Nb are less than Nc;
- and
- select the second computing device to receive a second number of blocks stored on the third computing device based on the selected random number falling within a range defined by [N−Na, 2N−(Na+Nb)).
A method of distributed stream processing, the method comprising:
- receiving, by a computing device, a request from a controller device to redistribute blocks storing streamed data, wherein the request indicates that a number of blocks stored on the computing device be sent to a second computing device, wherein the controller device controls distribution of analytic results to a data access system, wherein the analytic results are computed from the streamed data;
- selecting, by the computing device, the indicated number of blocks from the blocks storing the streamed data;
- sending, by the computing device, the selected blocks to the second computing device;
- after selecting the indicated number of blocks, calling, by the computing device, a function of an analytic task process created to at least partially compute an analytic result of the analytic results from the streamed data, wherein the function handles a modification to the analytic result that results from sending the selected blocks to the second computing device;
- and
- updating, by the computing device, a pointer to remaining blocks of the blocks storing the streamed data.
Dependencies are inferred from the claim text.