![]() |
|
|
#353 |
|
I ♥ BOINC!
Oct 2002
Glendale, AZ. (USA)
21318 Posts |
Schweet!
sudo code create vars for $date and $time for file names setup for loops for nplb(400 5000) do something for llrnet(10000,10001) do something for crus(4 5) do something The full path on Server is: /home/ironbits/$typeserver$port (nplbserver400 or llrnetserver10000 or crusserver6) as an example The path to store the files moved from each above would be /home/ironbits/results/results_yyyymmddhh_minsec_IB_$type_$port.org.txt :something mv /home/ironbits/$typeserver$port/results.txt /home/ironbits/results/results_$date_$time_IB_$type_$port.org.txt etc. Then when all the moving is done, we process all the .org.txt files and create .txt for web results dir and .csv for importing @files = <$parsedir/*.org.txt>; foreach $file (@files) { print $file . "\n"; &processFile(); } for each *.org.txt we would convert and create .txt and .csv files so when it is done, for each $type and $port we would have the following: results_yyyymmddhh_minsec_IB_$type_$port.org.txt results_yyyymmddhh_minsec_IB_$type_$port.txt results_yyyymmddhh_minsec_IB_$type_$port.csv I can take it from there to get the files over to the other server to place the files where they belong on the respective websites and import directory. ![]() Thanks! Last fiddled with by IronBits on 2008-11-19 at 04:00 |
|
|
|
|
|
#354 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3·2,083 Posts |
Quote:
![]() However, yes, the fundamental concepts of your idea would still work, modified of course to fit my script. How about this? -llrnet-copyoff-results.pl moves the results.txt files to /tmp/llrnet/results_file_name.txt -llrnet-copyoff-results.pl launches csv.pl, feeding it an input file name of /tmp/llrnet/results_file_name.txt and an output file name of /tmp/llrnet/results_file_name.csv. Repeat for each server. -A script of some sort over on the "quad" box pulls down the results and csv files via scp or other such method once a day, 5 minutes or so after the files are generated by "server". Then for the status page generator script: -llrnet-status-pagegen.pl (in case you don't recognize the name, that's because I haven't sent this one to you yet ) looks at /home/ironbits/$typeserver$port/results.txt, knpairs.txt, rejected.txt, etc. and generates all the need info from it. This happens once an hour.-llrnet-status-pagegen.pl outputs the file /tmp/llrnet/status_page.html -A script over on "quad" pulls down status_page.html once an hour, and saves it as index.html (or whatever) in the respective folder. Again, this should probably be scheduled a minute or two after the file is generated so as to avoid any potential locking conflicts or stuff like that. Maybe we'd be better off using a different directory instead of /tmp, such as /home/ironbits/llrnet_temp/ or something like that, so that the files don't get erased if the machine reboots unexpectedly in between the time when the files are generated and when they're picked up by "quad". Anyway, you get the picture. ![]() Max ![]() P.S.: You mentioned llrnet.ironbits.net ports 10000 and 10001, which reminded me: I just dried port 10001 earlier today. You can go ahead and dismantle port 10001 as soon as it's posted its results files for tomorrow. As discussed via email, you should probably leave port 10000 in place, though of course the server application itself doesn't need to be running as long as there's no work in it. ![]() P.P.S.: You also mentioned crus.ironbits.net ports 4 and 5. I thought we only had port 6 (which, if I remember correctly, was set to port 6000 on your backend)? I know we used to have a port 4 also (but that's long since been dismantled), but never a port 5.
Last fiddled with by mdettweiler on 2008-11-19 at 05:43 Reason: added P.S. and P.P.S. |
|
|
|
|
|
|
#355 |
|
I ♥ BOINC!
Oct 2002
Glendale, AZ. (USA)
21318 Posts |
Wow! Just need one script to run once every 24 hours, and one that runs hourly.
2 scripts to do it all. ![]() I'll take a look at anything you want to send me so I have some sample working code to work with, and I'll get it all fixed up over here for multiple $types and $ports, and I'll send it to you when I'm done. I'm planning on sprucing up the layout, just haven't wrapped my head around a decent layout for the data I'm putting up on the website... It's gonna take me a little while, so don't hold your breath yet! ![]() Glad you have a working system over there in linux. |
|
|
|
|
|
#356 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
624910 Posts |
Quote:
|
|
|
|
|
|
|
#357 |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
141518 Posts |
Hi all,
Gary just installed some updates on the box that's hosting the G4000 server, and it will need to be rebooted in order to complete the process. We're currently holding off on the reboot until everyone running on this server has a chance to shift their resources elsewhere (at least temporarily). Anyway, it appears that MyDogBuster and myself are the only two users currently crunching on G4000; Buster, could you please confirm here when you get your machines moved off G4000? Thanks. ![]() Max
|
|
|
|
|
|
#358 |
|
Sep 2004
2×5×283 Posts |
Max,
You can reboot the server, don't worry about the clients, they will pick up the pace when they next connect. Just trying IB code: C443 Work done today by: em99010pepe : 3828 Kman1293 : 1742 MrOzzy : 794 MyDogBuster : 718 Carlos Last fiddled with by em99010pepe on 2008-11-19 at 20:29 |
|
|
|
|
|
#359 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
624910 Posts |
Quote:
![]() P.S.: Gary, I forgot to mention in my PM, when I reboot the server you should probably have crunchford plugged into a monitor, if it isn't already. I've noticed that if I reboot a computer without a monitor attached, usually when it starts back up it gets the resolution, refresh rate, etc. all wrong.
Last fiddled with by mdettweiler on 2008-11-19 at 20:42 |
|
|
|
|
|
|
#360 |
|
May 2008
Wilmington, DE
22×23×31 Posts |
Sorry, Taking a nap. I'm set re-boot anytime.
|
|
|
|
|
|
#361 |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
|
|
|
|
|
|
#362 | |
|
May 2007
Kansas; USA
242558 Posts |
Quote:
Reboot away. That's weird about it needing to be connected to a monitor to get the refresh thing right. I have to drop my kids off now. If you wait until after 10:30 EST, I'll go down and connect it to a monitor. Usually it would be connected to one but right now, I have one monitor upstairs doing tests on my "down" machines. I agree with Carlos...really people shouldn't have to move their machines off of the port. They should reconnect quickly if you reboot and restart the server quickly. Gary Last fiddled with by gd_barnes on 2008-11-20 at 03:03 |
|
|
|
|
|
|
#363 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
Quote:
Then again, maybe there's a difference in the fact that my quad runs Windows instead of Linux like yours do. Not to mention that, if memory serves, you have a keyboard and mouse plugged in to all of your quads even when they don't have a monitor on them, correct? Anyway, I'll go reboot the server shortly... |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRPnet servers for NPLB | mdettweiler | No Prime Left Behind | 228 | 2018-12-26 04:50 |
| Servers for NPLB | gd_barnes | No Prime Left Behind | 0 | 2009-08-10 19:21 |
| LLRnet servers for CRUS | gd_barnes | Conjectures 'R Us | 39 | 2008-07-15 10:26 |
| NPLB LLRnet server discussion | em99010pepe | No Prime Left Behind | 229 | 2008-04-30 19:13 |
| NPLB LLRnet server #1 - dried | em99010pepe | No Prime Left Behind | 19 | 2008-03-26 06:19 |