Number-of-couplings control method and distributing device
AssigneeFujitsu Limited
InventorTatsuma Matsuki
Life of this patent
Estimating the term…
Abstract
A number-of-couplings control method includes recording a first time from reception of a request transmitted by a first device to transmission of the request to a second device and a second time from the transmission of the request to the second device to reception of a response to the request corresponding to each of a plurality of requests, and changing an upper limit of the number of simultaneous couplings to the second device based on a comparison between a statistic of the first time and a statistic of the second time.
Claims5
A number-of-couplings control method performed by a computer, the method comprising:
- executing a first process that includes storing a first time and a second time in association with each of a plurality of requests, the first time being a time period between a time when a first request from a first device is received by a communication node and a time when the first request is transmitted to a second device from the communication node, the first request being any of the plurality of requests, the second time being a time period between a time when the first request is transmitted to the second device from the communication node and a time when a response to the first request is received by the communication node from the second device;
- storing an execution time of asynchronous processing executed by the second device according to the request after transmission of the response by the second device;
- and
- executing a second process that includes:
- obtaining a statistic of the first time and a statistic of the second time that are calculated as a function of a number of simultaneous couplings between the first device and the second device;
- correcting the statistic of the second time based on the execution time of the asynchronous processing;
- changing an upper limit of the number of simultaneous couplings to the second device based on a comparison between the statistic of the first time and the statistic of the second time;
- increasing the upper limit when the statistic of the first time is equal to or larger than the statistic of the second time;
- and
- decreasing the upper limit when the statistic of the first time is smaller than the statistic of the second time.
A distributing device comprising:
- a memory;
- and
- a processor coupled to the memory and configured to:
- execute a first process that includes storing, in the memory, a first time and a second time in association with each of a plurality of requests, the first time being a time period between a time when a first request from a first device is received by a communication node and a time when the first request is transmitted to a second device from the communication node, the first request being any of the plurality of requests, the second time being a time period between a time when the first request is transmitted to the second device from the communication node and a time when a response to the first request is received by the communication node from the second device;
- storing an execution time of asynchronous processing executed by the second device according to the request after transmission of the response by the second device;
- execute a second process that includes:
- obtaining a statistic of the first time and a statistic of the second time that are calculated as a function of a number of simultaneous couplings between the first device and the second device;
- correcting the statistic of the second time based on the execution time of the asynchronous processing;
- changing an upper limit of the number of simultaneous couplings to the second device based on a comparison between the statistic of the first time and the statistic of the second time,
- increasing the upper limit when the statistic of the first time is equal to or larger than the statistic of the second time, and
- decreasing the upper limit when the statistic of the first time is smaller than the statistic of the second time.
Dependencies are inferred from the claim text.