Method and apparatus for determining the capacity of an application cluster
Abstract
Provided in the disclosed embodiments are a method and an apparatus for obtaining a capacity of an application cluster. The method comprises: setting up a simulated application cluster to be tested, the simulated application cluster comprising at least two testing machines; performing an overall workload pressure testing on the test machines of the application cluster to obtain an average single-machine capability of the test machines; and calculating the application cluster capacity based on a total workload pressure of the application cluster and the average single-machine capability of the test machines. By setting up a simulated application cluster to be tested and performing an overall workload pressure test on multiple testing machines of the whole simulated application cluster, the disclosed embodiments can obtain a more accurate average single-machine capability of the machines that is closer to reality, thereby obtaining a more accurate capacity of the application cluster.
Claims
exact text as granted — not AI-modified1 - 20 . (canceled)
21 . A method comprising:
performing, by a processing device, overall workload pressure testing on each test machine in a simulated application cluster that includes at least one test machine using a preset initial workload pressure value for the simulated application cluster; adjusting, by the processing device, the workload pressure value; and calculating, by the processing device, an average single-machine capability of each test machine when the workload pressure value reaches a maximum value triggering a rate limit threshold of the application cluster.
22 . The method of claim 21 , the adjusting the workload pressure value comprising reducing, by the processing device, the workload pressure value according to a preset step length when the initial workload pressure value triggers the rate limit threshold.
23 . The method of claim 21 , further comprising:
reducing, by the processing device, an application cluster capacity when a load capability of the application cluster reaches a capacity reduction threshold of auto scaling; and using, by the processing device, an average query-per-second of each test machine as the average single-machine capability of the application cluster when the application cluster capacity is reduced and the load capability of the application cluster reaches a capacity expansion threshold of auto scaling.
24 . The method of claim 23 , the reducing the application cluster capacity comprising gradually reducing, by the processing device, the application cluster capacity according to a preset capacity reduction ratio.
25 . The method of claim 21 , further comprising calculating, by the processing device, a capacity percentage of a single application cluster within a set of application clusters after capacities of all the application clusters are obtained.
26 . The method of claim 21 , further comprising adjusting, by the processing device, an application cluster capacity according to a planned data-handling capability of the application cluster.
27 . The method of claim 26 , the adjusting the application cluster capacity according to a planned data-handling capability of the application cluster comprising adjusting, by the processing device, the application cluster capacity according to a ratio of the planned data-handling capability of the application cluster to a total workload pressure value of the application cluster.
28 . The method of claim 21 , further comprising initializing the simulated application cluster by:
identifying, by the processing device, an application cluster to simulate, the application cluster selected from a set of application clusters; initializing, by the processing device, the simulated application cluster with at least two test machines if the set of application clusters comprises a single application cluster; and initializing, by the processing device, the simulated application cluster with a single test machine if the set of application clusters comprises at least two application clusters.
29 . The method of claim 21 , the performing overall workload pressure testing on each test machine comprising simulating, by the processing device, online traffic to each test machine.
30 . A non-transitory computer-readable storage medium for tangibly storing computer program instructions capable of being executed by a computer processor, the computer program instructions defining steps of:
performing overall workload pressure testing on each test machine in a simulated application cluster that includes at least one test machine using a preset initial workload pressure value; adjusting the workload pressure value; and calculating an average single-machine capability of each test machine when the workload pressure value reaches a maximum value triggering a rate limit threshold of the application cluster.
31 . The non-transitory computer-readable storage medium of claim 30 , the adjusting the workload pressure value comprising reducing, by the processing device, the workload pressure value according to a preset step length when the initial workload pressure value triggers the rate limit threshold.
32 . The non-transitory computer-readable storage medium of claim 30 , steps further comprising:
reducing, by the processing device, an application cluster capacity when a load capability of the application cluster reaches a capacity reduction threshold of auto scaling; and using, by the processing device, an average query-per-second of each test machine as the average single-machine capability of the application cluster when the application cluster capacity is reduced and the load capability of the application cluster reaches a capacity expansion threshold of auto scaling.
33 . The non-transitory computer-readable storage medium of claim 32 , the reducing the application cluster capacity comprising gradually reducing, by the processing device, the application cluster capacity according to a preset capacity reduction ratio.
34 . The non-transitory computer-readable storage medium of claim 30 , the steps further comprising calculating, by the processing device, a capacity percentage of a single application cluster within a set of application clusters after capacities of all the application clusters are obtained.
35 . The non-transitory computer-readable storage medium of claim 30 , the steps further comprising adjusting, by the processing device, an application cluster capacity according to a planned data-handling capability of the application cluster.
36 . The non-transitory computer-readable storage medium of claim 35 , the adjusting the application cluster capacity according to a planned data-handling capability of the application cluster comprising adjusting, by the processing device, the application cluster capacity according to a ratio of the planned data-handling capability of the application cluster to a total workload pressure value of the application cluster.
37 . The non-transitory computer-readable storage medium of claim 30 , the steps further comprising initializing a simulated application cluster by:
identifying, by the processing device, an application cluster to simulate, the application cluster selected from a set of application clusters; initializing, by the processing device, the simulated application cluster with at least two test machines if the set of application clusters comprises a single application cluster; and initializing, by the processing device, the simulated application cluster with a single test machine if the set of application clusters comprises at least two application clusters.
38 . The non-transitory computer-readable storage medium of claim 30 , the performing overall workload pressure testing on each test machine comprising simulating, by the processing device, online traffic to each test machine.
39 . A device comprising:
a processor; and a storage medium for tangibly storing thereon program logic for execution by the processor, the stored program logic comprising: logic, executed by the processor, for performing overall workload pressure testing on each test machine in a simulated application cluster that includes at least one test machine using a preset initial workload pressure value; logic, executed by the processor, for adjusting the workload pressure value; and logic, executed by the processor, for calculating an average single-machine capability of each test machine when the workload pressure value reaches a maximum value triggering a rate limit threshold of the application cluster.
40 . The device of claim 39 , the stored program logic further comprising:
logic, executed by the processor, for reducing an application cluster capacity when a load capability of the application cluster reaches a capacity reduction threshold of auto scaling; and logic, executed by the processor, for using an average query-per-second of each test machine as the average single-machine capability of the application cluster when the application cluster capacity is reduced and the load capability of the application cluster reaches a capacity expansion threshold of auto scaling.Join the waitlist — get patent alerts
Track US2022129288A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.