Folding Cache

Status
Not open for further replies.

tomboishmo

Smack-Fu Master, in training
51
I was trying to think of a way to cache when the servers are down and came up with an idea. It would work something like this: When the servers are down, the WU's are sent to the cache server. Then the person could still possibly get work from one of the other servers that are still up. Usually only a couple are down and the main problem is you have to send it to the same server you got it from. After the server is back up, the cache server would upload the WU's to the correct server.

I know there are problems and don't know if this is possible, but it is just an idea.
 

nottestuser

Ars Scholae Palatinae
1,049
What tomboishmo is talking about is not really caching of the type that Stanford is worried about. Stanford is afraid people will check out massive numbers of work units and either never return them or return them later than they would be usefull. tomboishmo is talking about caching completed workunits until the server they came from is avalible again. With an upload re-try interval of say, 15 minutes you can't tell me that that work unit will be uploaded too late to be useful. When you pull down a new work unit, you're only taking what you can process.

I think its a great idea except 1) I have no time to impliment it and 2) version 2 is due out RSN (since June???) and that will be Completely Different.
 

theseum

Ars Tribunus Militum
2,879
a simpler way of doing that would be to have a program that detects when the client is trying to upload to a server that is down (I don't know how to do that, but I'm sure it is possible) and moves the completed WU to a different directory, so that the client downloads from a different server. the only difficulty is re-uploading the WU... one solution might be the following: the program (let's call it foldingcache) contains a clean F@H install. when the client cannot connect, it simply creates a copy of the clean install in a seperate folder and runs that. Then, when the first client manages to connect, it prevents the client from downloading a new WU and deletes it. Is there an -upload switch that prevents the client from downloading new work, or would the program have to manually detect the correct moment to kill the client so that it would upload, but not download? I think that this idea can work, and not be damaging to the project...
 

theseum

Ars Tribunus Militum
2,879
that would work, I guess... although I think it would be easier, from a programming perspective, to cimply close the program at the right moment... I am going for a quick and dirty solution here, you'll notice that all my proposed app has to do is read the scrlog.txt file, copy a few files back and forth, and execute a program... stuff that should be possible with only a few hours of programming... right now I am doing schoolwork, but I will try to put something together tomorrow, if nobody more adept then I has decided to take a crack at it...
 

theseum

Ars Tribunus Militum
2,879
I just had a thought which is that if this scheme were used widely, it would probably cause a "cascading crash" effect: when one server goes down, there are an unusual number of download requests on the other servers without a corresponding increase in uploads (which are used to generate new WU's.) So, the other servers, one by one, begin to run out of new WU's... eventually all those WU's they send out begin to come back, and they have enough WU's for all... but for a few hours, this could cause a single server crash to escalate to a situation in which there aren't any WU's available. Not that it would negatively affect the project, because all the work would still be getting done and returned on time, but it would mean that if one server goes down, the others all have to take a greater load, which right now their system isn't designed to do...

I will still go ahead and try to make this program, but I think we should ask stephan before distributing such a thing en masse.
 
Status
Not open for further replies.