摘要 |
A method for sampling management includes establishing, for a multi-core intermediary comprising a plurality of packet evaluation components executing on a corresponding plurality of cores, a frequency at which the multi-core intermediary intercepts a response transmitted from a server to a client and injects data into the intercepted response. For each of the plurality of packet evaluation components, an offset and a frequency based on a number of packet evaluation components in the plurality of packet evaluation components is established, a combination of the established frequencies substantially similar to the frequency established for the multi-core intermediary. One of the plurality of cores intercepts a response from the server to the client, at a time specified by the frequency and the offset. The packet evaluation component executing on the one of the plurality of cores injects data into the intercepted response. |
主权项 |
1. A method for controlling, by a multi-core intermediary, injection of content into a response from a server to a request of a client, the method comprising:
establishing, for a multi-core intermediary device comprising a plurality of packet evaluation components executing on a corresponding plurality of cores, a frequency at which the multi-core intermediary device injects data into a response transmitted from a server to a client; establishing, for each of the plurality of packet evaluation components, an offset and a frequency based on a number of packet evaluation components in the plurality of packet evaluation components, the frequency for each packet evaluation component comprising the frequency of the multi-core intermediary device multiplied by a number assigned to a core executing the packet evaluation component, the offset for each packet evaluation component comprising a predetermined offset multiplied by the number assigned to the core executing the packet evaluation component a combination of each of the established frequencies for each of the plurality packet evaluation components corresponding to the frequency established for the multi-core intermediary device; injecting, by the packet evaluation component executing on one of the plurality of cores, data into a response from the server to the client at a time specified by the frequency and the offset for the packet evaluation component; and transmitting, by the one of the plurality of cores, the response comprising the injected data to the client. |