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 грн ?
-
Current freelance projects in the category Desktop Apps
Need an Airtable architect to build a relational schema and a new clean Airtable base.Need help rethinking and building a clean relational schema for an internal operational system on Airtable. The current database is already in use by the team, but it has grown organically: the structure is partially flat, some tables/views are actively used, while others are… Databases & SQL, Desktop Apps ∙ 1 day 8 hours back ∙ 9 proposals |
Creation of software for generating cutting files for wooden puzzlesWe are looking for a developer to create software that automates the process of building cutting files for wooden jigsaw puzzles. Current Process Currently, each file is created manually by a designer in Adobe Illustrator. The file contains: the outer contour of the puzzle in… Desktop Apps ∙ 1 day 12 hours back ∙ 14 proposals |
Small edit on the website
16 USD
Need to update the offer agreement in the footer to a new one, the company has changed its regulations Task will take 20 minutes Web Programming, Desktop Apps ∙ 2 days 14 hours back ∙ 108 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 4 days 21 hours back ∙ 43 proposals |
Add pauses of 10-30 seconds between sending emails.Hello! I am looking for an experienced 1C / BAS (BAF) programmer to promptly resolve a technical issue with email distribution.Problem essence: We use the accounting program BAF (Business Automation Framework), version 2.0. Once a month, there is a need to send about 300 emails… Web Programming, Desktop Apps ∙ 10 days 13 hours back ∙ 10 proposals |