Is there a way to produce random number for pxemenu?
For example i need to balance load between 10 web-servers, so I need
something like:
APPEND netboot=http://boot-serv-$RANDOM10/system.img
Another example is when 1000 boxes starts up at the same time (after
e.g. Datacenter power failure) it'll be useful to have random values in
timeout:
TIMEOUT $RANDOM120
--
Alexey Ivanov
Yandex Search Admin Team
On Wed, Nov 17, 2010 at 11:47, Alexey Ivanov <rbtz at yandex-team.ru> wrote:> ? Is there a way to produce random number for pxemenu? > > ? For example i need to balance load between 10 web-servers, so I need > ? something like: > ? ? APPEND netboot=http://boot-serv-$RANDOM10/system.img > > ? Another example is when 1000 boxes starts up at the same time (after > ? e.g. Datacenter power failure) it'll be useful to have random values in > ? timeout: > ? ? TIMEOUT $RANDOM120At this time, all config files are static. That said, you could use gpxe/gpxelinux.0 instead of core/pxelinux.0 and retreive your config from an HTTP server that runs a server-side script to make this randomized data. -- -Gene
Seemingly Similar Threads
- illegal opcode on cold pxe boots
- PXELINUX "Fancy" advanced menu question
- [PATCH] virtio: Work around frames incorrectly marked as gso
- [PATCH] virtio: Work around frames incorrectly marked as gso
- [PATCH] virtio: Work around frames incorrectly marked as gso