Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleLoadTest (xLarge)
collapsetrue
$ kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=1020
$ kubectl scale deploy infinite-calls --replicas=2
$ kubectl get hpa --watch
NAME         REFERENCE               TARGETS    MINPODS   MAXPODS   REPLICAS   AGE
php-apache   Deployment/php-apache   0%/50%     1         10 20       1          41m11m	# Starting the workload
php-apache   Deployment/php-apache   207%119%/50%   1         1020        1          42m11m
php-apache   Deployment/php-apache   207%119%/50%   1         1020       3 4          42m11m
php-apache   Deployment/php-apache   207%180%/50%   1         1020       3 5          43m12m
php-apache   Deployment/php-apache   55%180%/50%    1         1020       6 5          43m12m
php-apache   Deployment/php-apache   57%180%/50%    1         1020       11 5          44m13m
php-apache   Deployment/php-apache   57%51%/50%    1         1020        611          44m13m	# Beginning of the plateau
php-apache   Deployment/php-apache   44%49%/50%    1         20       11    10       14m
php-apache   Deployment/php-apache   52%/50%    1         20      6 11         45m15m
php-apache   Deployment/php-apache   45%50%/50%    1          10  20       11         16m
php-apache   Deployment/php-apache   51%/50%    1         20      6 11         46m17m
php-apache   Deployment/php-apache   47%50%/50%    1         20       11         18m
php-apache   Deployment/php-apache   48%/50%    1       10  20      6 11         47m19m
php-apache   Deployment/php-apache   47%50%/50%    1         1020       11 6          48m20m
php-apache   Deployment/php-apache   44%49%/50%    1         1020        611          49m21m
php-apache   Deployment/php-apache   45%49%/50%    1         1020       11 6        23m	# End of 50mthe plateau
php-apache   Deployment/php-apache   47%24%/50%    1         1020        611          51m24m	
php-apache   Deployment/php-apache   46%0%/50%     1         1020        611          52m25m
php-apache   Deployment/php-apache   0%/50%     1         20       11      10   29m
php-apache   Deployment/php-apache   0%/50%     1         20 6      6     53m	#  End of the plateau29m
php-apache   Deployment/php-apache   0%/50%     1         10 20       6          58m30m
php-apache   Deployment/php-apache   0%/50%     1         1020        1          58m30m	# End of workload

We note that the reaction time of the cluster, from the rest position to the plateau and vice versa, is about 4-5 minutes. Of course, the same behavior can also be seen by analyzing the metrics obtained by Grafana (the stress namespace is the one used for our tests).LoadTest (xLarge)Image RemovedLoadTest (xLarge)Image Added