I have a single entity and a cluster of entities that are configured to
install a number of files of application-specific data for a single day.
All the entities must always use the same day's data.
I'm working on allowing the reconfiguration of entities to use a
different day's data. At the moment this entails uploading the new data
to each server and then restarting them all. Newly created entities
(e.g. from a cluster resize) must be started with the new day's data.
My thought was to configure the entity specs with a shared object that
has a notion of the 'active' date and keeps a reference of the data used
for other dates. When entities are started they ask the object what data
they should install. Obviously the pattern fails if the entities do not
use the same object.
My alternative is to set the active date and data as a
BasicAttributeSensorAndConfigKey on the entity specs, and to update the
cluster's member spec when switching to a new day. I shied away from
this as I was unsure of the correctness of updating config on
already-deployed entities.
Any comments?
Sam