Powerwell - suspension/resumption of WM
Wirth. Cars will be called 1.2.3... n for convenience.
The algorithm is:
condition1
If the load is held above 95 per cent for 15 seconds, then suspend the vehicle n, if it is already stopped, then the vehicle (n-1), etc.
Recheck in 10 seconds. If the load is still high, we're still shutting down the virtuals.
condition2
If the PT load is less than 75 per cent within 15 seconds, re-start the stopped machine with the smallest number,
Recheck in 10 seconds. If the load is still low, we're gonna keep the virtuals working until everyone's working.
at the rest of the time, if not in condition 1 or condition 2, then check the load on the TP every second.
The variables should be delivered at the beginning of the script, for ease of editing
n = 20 / / number of virt. Motor vehicles
max_CPU = 95
min_CPU = 75
Time = 10
The main difficulty is that you have to read the metric.
System monitor -> Low-level sheathing logic processor --> % of total operating time
Other metrics reflect incorrect information (either do not take into account virtual machines or other PC processes).
Note also that it is necessary to suspend/upgrade wm rather than finish/start.
The script should work in an endless cycle, with the possibility of a combination of keys coming out, or, if the difficulties don't arise, I'll close it by pressing the cross.
What does it look like when you manually switch on/off?
https://i.gyazo.com/7012af6297974351e28b04d2ffef740a.png
Here, 24, 25, 26 are fixed, if the load is low, then we're going to turn 24 then 25 then 26.
If the load is high, then we'll turn off 23, then 22, then 21 and so on until the load on the TP is "set" to normal.
Example that you have to start turning off virtual cars.
https://i.gyazo.com/8aaf481b4be4a0ecadbe25f943af189e.png
-
Доброй ночи !не по теме ,но например в гипервизоре КВМ ,такое реализовать намного легче.У вас я так понял Виндовс
-
да, у меня все работает в hyper-v / windows
-
Уже был такой проект и вы решили начать опять с козырной ставки в 500 грн ?
-
Aktualne zlecenia dla freelancerów w kategorii Aplikacje desktopowe
Narzędzie do porównywania rachunków z bankiem, kartami i księgowymZadanie techniczne: narzędzie do porównywania rachunków z bankiem, kartami i księgowymOgólny cel Potrzebne jest lokalne narzędzie (skrypt/mała aplikacja w Pythonie), które uruchamiane ręcznie co 1-2 miesiące na moim komputerze i dokonuje porównania między: Rachunkami, które… Python, Aplikacje desktopowe ∙ 21 godzin 55 minut temu ∙ 34 oferty |
Dodać przerwy 10-30 sekund między wysyłkami e-mailiWitam! Szukam doświadczonego programisty 1C / BAS (BAF) do szybkiego rozwiązania problemu technicznego z wysyłką maili.Istota problemu: Używamy programu księgowego BAF (Business Automation Framework), edycja 2.0. Raz w miesiącu pojawia się potrzeba masowego wysyłania klientom… Programowanie stron internetowych, Aplikacje desktopowe ∙ 6 dni 13 godzin temu ∙ 10 ofert |
Rewersowe inżynieria konsolowych narzędzi do ankietowania kontrolerów SSD (Flash ID)1. Cel pracy Wydzielenie interfejsu programowania aplikacji (API) do interakcji z kontrolerami SSD/NVMe z dostarczonego zestawu narzędzi konsolowych (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron itd.). Wynikiem ma być działający kod w języku C/C++ lub dokładna… C i C++, Aplikacje desktopowe ∙ 7 dni 1 godzina temu ∙ 6 ofert |