app_config to only get Perf or Cnode tasks

Message boards : Number crunching : app_config to only get Perf or Cnode tasks
Message board moderation

To post messages, you must log in.

AuthorMessage
mikey

Send message
Joined: 12 May 20
Posts: 29
Credit: 1,681,398
RAC: 1,391
United States
Message 807 - Posted: 14 Sep 2020, 1:32:35 UTC

I've been trying to come up with an app_config.xml file to only get one or the other kind of tasks, they often have both but badges are badges and sometimes I get many more of one kind than the other and I would rather not abort tasks, this is what I have come up with but I don't think the Cnode tasks don't have the correct name:

<app_config>
<app>
<name>ithena_cnode</name>
<max_concurrent>0</max_concurrent>
</app>
<app>
<name>ithena_perf</name>
<max_concurrent>30</max_concurrent>
</app>
</app_config>

In this example I would run up to 30 Perf tasks but not run any Cnode tasks but when I looked at some completed Cnode tasks they don't have that name in them so it won't work. Any ideas?
ID: 807 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Sergey Kovalchuk

Send message
Joined: 23 Sep 19
Posts: 59
Credit: 789,767
RAC: 0
Ukraine
Message 808 - Posted: 14 Sep 2020, 3:10:38 UTC - in response to Message 807.  
Last modified: 14 Sep 2020, 3:14:19 UTC

this file will not give a solution. nci task, no concurrent execution, only one task at a time and this is the choice of the server
it is possible to solve with app_info - anonymous platform, but only if allowed on the server

correct solution is to allow on server "app filtering", lets users select apps individually.
https://boinc.berkeley.edu/trac/wiki/AppFiltering

for admin:

App filtering is disabled by default. To enable it, add to your html/project/project_specific_prefs.inc:
define ('APP_SELECT_PREFS', true);


The app filtering user interface is part of project-specific preferences (i.e., the "Preferences for this project" link on their account page).
If the feature is enabled, users are shown:
• A list of apps and check boxes.
• A checkbox labeled "If no work for selected applications is available, accept work from other applications?"
ID: 808 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Rysiu
Project administrator
Project developer
Project tester
Project scientist
Avatar

Send message
Joined: 25 Aug 19
Posts: 409
Credit: 1,240,185
RAC: 0
Poland
Message 809 - Posted: 14 Sep 2020, 10:59:59 UTC

I added the APP_SELECT_PREFS flag to the configuration :)
ID: 809 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Sergey Kovalchuk

Send message
Joined: 23 Sep 19
Posts: 59
Credit: 789,767
RAC: 0
Ukraine
Message 811 - Posted: 14 Sep 2020, 12:14:55 UTC - in response to Message 809.  

I added the APP_SELECT_PREFS flag to the configuration :)

does not work, maybe you need to update the project so that the new settings appear on the server?
ID: 811 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mikey

Send message
Joined: 12 May 20
Posts: 29
Credit: 1,681,398
RAC: 1,391
United States
Message 812 - Posted: 14 Sep 2020, 12:29:19 UTC - in response to Message 811.  

I added the APP_SELECT_PREFS flag to the configuration :)


does not work, maybe you need to update the project so that the new settings appear on the server?


Agreed I don't see it either right now.
ID: 812 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Rysiu
Project administrator
Project developer
Project tester
Project scientist
Avatar

Send message
Joined: 25 Aug 19
Posts: 409
Credit: 1,240,185
RAC: 0
Poland
Message 813 - Posted: 14 Sep 2020, 12:59:25 UTC

Now?
ID: 813 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Sergey Kovalchuk

Send message
Joined: 23 Sep 19
Posts: 59
Credit: 789,767
RAC: 0
Ukraine
Message 814 - Posted: 14 Sep 2020, 13:49:39 UTC - in response to Message 813.  

https://root.ithena.net/usr/prefs.php?subset=project
the page should receive a new code - selection of applications

instead it got an error message
Notice: Constant APP_SELECT_PREFS already defined in /home/boincadm/projects/ithena/html/project/project_specific_prefs.inc on line 47
ID: 814 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mikey

Send message
Joined: 12 May 20
Posts: 29
Credit: 1,681,398
RAC: 1,391
United States
Message 815 - Posted: 14 Sep 2020, 22:00:11 UTC - in response to Message 813.  
Last modified: 14 Sep 2020, 22:01:03 UTC

Now?


No I see this:

Edit iThena preferences for home
Resource share
1

Use CPU
Run test applications?

That was for Home this is for the Default settings:

Resource share ---
Use CPU
Run test applications?
Is it OK for iThena and your team (if any) to email you?
Should iThena show your computers on its web site?
General terms-of-use for this BOINC project.
Do you consent to exporting your data to BOINC statistics aggregation Web sites?
Default computer location ---

Edit preferences
ID: 815 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Dr Who Fan
Volunteer moderator

Send message
Joined: 7 Apr 20
Posts: 427
Credit: 1,119,166
RAC: 461
United States
Message 816 - Posted: 15 Sep 2020, 7:01:23 UTC

Appears he got now. I see the "iThena app", "CNode app" selections and "other apps" check boxes for all venues.
 ...
Run only the selected applications	 iThena CNode
 iThena PERF
If no work for selected applications is available, accept work from other applications?	


ID: 816 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mikey

Send message
Joined: 12 May 20
Posts: 29
Credit: 1,681,398
RAC: 1,391
United States
Message 817 - Posted: 15 Sep 2020, 12:35:39 UTC - in response to Message 816.  

IT WORKS!!!!! Thank you VERY much!!!
ID: 817 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Rysiu
Project administrator
Project developer
Project tester
Project scientist
Avatar

Send message
Joined: 25 Aug 19
Posts: 409
Credit: 1,240,185
RAC: 0
Poland
Message 820 - Posted: 15 Sep 2020, 17:43:41 UTC

Great :)
ID: 820 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : app_config to only get Perf or Cnode tasks

© 2019-2024 iThena. All rights reserved. | Private Policy

Page generated on 28 Mar 2024, 8:53:56 UTC in 0.2469 seconds.