This page (revision-37) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:06 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
37 23-Apr-2022 17:06 19 KB Harry Metske to previous
36 23-Apr-2022 17:06 18 KB Harry Metske to previous | to last
35 23-Apr-2022 17:06 18 KB Harry Metske to previous | to last
34 23-Apr-2022 17:06 18 KB Harry Metske to previous | to last
33 23-Apr-2022 17:06 18 KB Harry Metske to previous | to last
32 23-Apr-2022 17:06 18 KB Harry Metske to previous | to last
31 23-Apr-2022 17:06 17 KB Harry Metske to previous | to last
30 23-Apr-2022 17:06 17 KB Harry Metske to previous | to last
29 23-Apr-2022 17:06 17 KB HarryMetske to previous | to last
28 23-Apr-2022 17:06 17 KB Harry Metske to previous | to last
27 23-Apr-2022 17:06 17 KB Harry Metske to previous | to last
26 23-Apr-2022 17:06 16 KB Harry Metske to previous | to last
25 23-Apr-2022 17:06 16 KB Harry Metske to previous | to last
24 23-Apr-2022 17:06 14 KB HarryMetske to previous | to last
23 23-Apr-2022 17:06 14 KB HarryMetske to previous | to last
22 23-Apr-2022 17:06 14 KB HarryMetske to previous | to last
21 23-Apr-2022 17:06 15 KB HarryMetske to previous | to last

Page References

Incoming links Outgoing links
Apache Brooklyn...nobody

Version management

Difference between version and

At line 175 changed one line
Eventually this comes down to the following yaml (that you can submit to brooklyn):
Eventually this comes down to the following yaml (that you can submit to brooklyn), after fiddling a bit with the settings and looking at brooklyn's behaviour :
%%collapsebox
__yaml for AutoScalingPolicy__
At line 196 changed 2 lines
metricLowerBound: 10
metricUpperBound: 100
metricLowerBound: 3
metricUpperBound: 5
At line 200 changed 2 lines
resizeUpStabilizationDelay: 10000
resizeDownStabilizationDelay: 20000
resizeDownIterationIncrement: 1
resizeUpIterationIncrement: 1
resizeUpStabilizationDelay: 50000
resizeDownStabilizationDelay: 70000
At line 207 changed one line
creationScriptUrl: https://bit.ly/brooklyn-visitors-creation-script
creationScriptUrl: https://bit.ly/brooklyn-visitors-creation-script}}}
/%
Testng was done by throwing this simple script at the nginx endpoint :
%%prettify
{{{
while true;
do
curl --silent --show-error http://172.17.0.226:8000/db.jsp >/dev/null && echo -n "." ;
sleep 0.15s;
done
At line 225 added 19 lines
%%
In short the behaviour:
* we fire up the whole thing
* we start one instance of this loadrunner script driving the "webapp.reqs.perSec.windowed.perNode" to about 3
* start more instances of the loadrunner script
* the "webapp.reqs.perSec.windowed.perNode" goes up to 7
* after 50 seconds an additional Tomcat instance is fired up
* the "webapp.reqs.perSec.windowed.perNode" drops below 5 now, and we keep running 3 Tomcat instances
* we start more instances of the loadrunner script, the "webapp.reqs.perSec.windowed.perNode" goes up to above 5 again
* after 50 seconds again an additional Tomcat is started
* throwing more load at it does not make more Tomcat's since we set the maxPoolSize to 4
* we kill a couple of loadrunner scripts until the "webapp.reqs.perSec.windowed.perNode" drops below 3
* then one Tomcat is killed and we are back to 3 instances
* "webapp.reqs.perSec.windowed.perNode" goes to between 3-5 and we remain at 3 instances
* we kill more loadrunner scripts until "webapp.reqs.perSec.windowed.perNode" drops below 3
* an additional Tomcat is killed
* we stop the load completely, driving "webapp.reqs.perSec.windowed.perNode" to 0
* we keep running 2 Tomcat instances, since minPoolSize is 2