Toby Crawley writes:
> I really like the event log approach. I do have a question about how
> it works in the current production environment - I see that the
> clojars architecture diagram shows a second instance for failover and
> rolling deploys. Is that instance still used? If so, how do you handle
> a file-based event log between two instances?
Good point. Right now I believe that the backup instance is only used
during deployment to check that we're all-clear before bouncing the
primary instance. I don't think that we actually have production traffic
falling back to it, but we should double check the logs to confirm this.
Even so it would probably be wise to either use file locking on the
event logs or to configure the backup instance to write to a different
directory and come up with a strategy for reconciling the two. Since
everything is timestamped, it should be easy to merge the two streams
after the fact. But we should consider that in our plans.
Thanks for bringing this up.
-Phil