boxidau / rax-autoscaler

Apache License 2.0
5 stars 2 forks source link

xenstore read limits will be reached #69

Closed boxidau closed 9 years ago

boxidau commented 9 years ago

In cluster mode the instance UUID is determined by using xenstore-read name.

xenstore has a 1000 query limit meaning rax-autoscaler will cease to function after about 16 hours if running on a 1 minutely cron job

Hitting the query limit on xenstore also breaks a lot of other cloud server management functionality, we absolutely must cache the instance UUID so we only need to query xenstore the first time.

boxidau commented 9 years ago

Machine UUID cache file name should be generated based on some other machine unique ID

Something like this should do it: dmidecode | grep 'UUID|Serial' | sha1sum

This way imaging machines will not be a problem