These will require the Master URLs for each Project. Next we create an Action to suspend each BOINC Project we are running. “Start” to the time of day that BOINC should be suspended.Ĭreate Triggers for each time when the BOINC Projects should be suspended. Select “Weekly” and check “Monday” through “Friday” to have the Task run on Weekdays and set the In the “Triggers” tab we create triggers to specify when we want the “Action” (suspend command) to run:Ĭlick on the “New …” button to define a new Trigger: Give the Task a Name and Description and make sure to select “Run whether the user is logged on or not” In the Actions Pane at the Right click on “Create Task …” Open the Task Scheduler (Start Menu | Windows Administrative Tools): Under Windows we can use the Task Scheduler to created two Scheduled Tasks, one to Suspend BOINC Tasks and the other to Resume them. If we wanted to run BOINC during the Mid-Peak as well as Off-Peak during the Summer we could do so by commenting out (prepending a “#” at the start of) the Mid-Peak line and un-commenting (removing the “#”) at the start of the On-Peak line. Here we have enabled BOINC applications to run during the current Season (summer) during Off-Peak hours from 7pm until 7am weekdays. # use /bin/bash to run commands, instead of the default /bin/shĠ0 07 * * 1-5 /root/all_boinc_tou.sh suspend Type x to exit the editor saving the file. On a local host the code can be placed in a script and launched at appropriate times using the cron utility.įor url in $(/usr/bin/boinccmd -get_project_status | sed -n 's/\s*master URL: //p') do There is no command to suspend or resume all BOINC applications running on a host but the running applications can be enumerated using the tool and the results used to suspend or resume all running applications.įor a locally attached client the syntax is:įor url in $(boinccmd -get_project_status | sed -n 's/\s*master URL: //p') doįor a remote client the syntax is: for url in $(boinccmd –-host -get_project_status | sed -n 's/\s*master URL: //p') doīoinccmd –-host -project $ suspend The examples used here are for Linux (Ubuntu 22.04) but can be used on a Mac. The BOINC client must first be configured to allow Remote Procedure Calls (RPCs) on the target client, the source of the RPC call must be specified and, optionally, a password. To accommodate needing to schedule more than one BOINC suspend/resume cycle in a day we can leverage the boinccmd application which can be used to send commands to a locally attached BOINC client or a remote client by specifying its IP Address and, optionally, a password. Note, however, that you can only schedule one period of activity per day and so may be unsuitable for more complex use cases. The BOINC Manager application includes functionality for scheduling when during the day tasks should run: The Berkeley Open Infrastructure for Network Computing (BOINC) client supports suspending applications and no penalty is incurred for suspending then resuming a task. The Winter On-Peak rates appear to target times when households are waking or arriving home from work and so appear to be encouraging use of high power devices such as drying machines and stoves earlier and later in the day. During summer the On-Peak period corresponds to the hottest period of the day and was likely established to encourage consumers to reduce set-points on Air Conditioning (A/C) to conserve electricity. The rationale for the periods is that the “baseload” power during off-peak periods is supplied from always on-line Nuclear and Hydro-electric generation and during Peak usage more expensive generation using Natural Gas is employed. As can be seen the electricity rate more than doubles during the On-Peak period compared to Off-Peak and is 39% more expensive during Mid-Peak periods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |