Interesting Project Re-Attachment Behavior

Purple Rabbit
Purple Rabbit
Joined: 15 Feb 05
Posts: 12
Credit: 113884356
RAC: 131671
Topic 192420

Like everyone else I was seeing anomalous behavior on one of my hosts. Strangely, my other 2 Einstein hosts were doing just fine. I had a completed result that seemed to just sit there and I didn't get any new work for two days. I updated. I reset. Finally I detached. I then noticed on the web site that the result had been sent and credited 2 days previously, but my host didn't know that...sigh. I did all this on 9 Feb.

Detaching when there are server problems wasn't the smartest thing I ever did :-) Of course I tried to reattach, but I couldn't do it until today. The attach finally worked and I got new work. What I found strange was that I had the same host number I had before (714160).

I presume the server was in la-la land for a few days so it probably didn't know I had detached. Getting the old host number certainly isn't a problem for me, but I mention this in case this has other consequences in the database. It's not what I expected to happen.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5872
Credit: 117737385541
RAC: 34879912

Interesting Project Re-Attachment Behavior

Quote:
Like everyone else I was seeing anomalous behavior on one of my hosts. Strangely, my other 2 Einstein hosts were doing just fine.

Have a read of this thread and it might help explain the "anomalous" behaviour.

Quote:
What I found strange was that I had the same host number I had before (714160).

Why do you think this is strange?? When you detach you don't destroy the configuration information that resides on your host. If you had other projects running, you wouldn't even uninstall BOINC. Even if you did uninstall BOINC, this doesn't remove the files associated with each project. You could come back a month later, reinstall BOINC (using the same installation folder), re-attach to the project and fully expect to see the same host ID unless you have manually removed the project files.

Quote:
... I mention this in case this has other consequences in the database.

Nope - no problem for the database.

Cheers,
Gary.

Purple Rabbit
Purple Rabbit
Joined: 15 Feb 05
Posts: 12
Credit: 113884356
RAC: 131671

RE: Why do you think this

Message 60819 in response to message 60818

Quote:
Why do you think this is strange??


I only mentioned it as strange because whenever I have detached on other projects I got a new host number when I reattached. I took this to be normal BOINC behavior. I'm glad that it's not a problem.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5872
Credit: 117737385541
RAC: 34879912

RE: ... whenever I have

Message 60820 in response to message 60819

Quote:
... whenever I have detached on other projects I got a new host number when I reattached....

Actually, you may be correct. In December last, I mothballed a large number of machines by setting "No new tasks" and then "Suspending" the project, but not actually "Detaching" as well. I had thought I had detached but on rechecking a couple of them, the project was only suspended. I've "Resumed" these pair of machines and they have simply continued to use their previous IDs. So I can't say for sure if "Detaching" actually deletes the project specific information from the state file, "client_state.xml", where the hostID is stored for each project.

If you have observed the behaviour of losing the ID by detaching, that would probably occur by the deletion of the appropriate section of the state file. I could imagine that this deletion might be prevented if something else had the state file open or locked at the time of attempted deletion.

Whatever the precise cause, I'm sure the behaviour is benign as far as the database is concerned.

Cheers,
Gary.

Keck_Komputers
Keck_Komputers
Joined: 18 Jan 05
Posts: 376
Credit: 5744955
RAC: 0

RE: RE: Why do you think

Message 60821 in response to message 60819

Quote:
Quote:
Why do you think this is strange??

I only mentioned it as strange because whenever I have detached on other projects I got a new host number when I reattached. I took this to be normal BOINC behavior. I'm glad that it's not a problem.


It was the normal behavior in the past, and still is common behavior. However there have been improvements to the section of the server that recognizes previously attached hosts. So while it is still likely that you will get a new host ID from detaching and reattaching the odds have been reduced.

BOINC WIKI

BOINCing since 2002/12/8

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.