Although Erlang supports hot-loading code, this is not what you need to use. In your case, itβs easier to remove one of the time nodes from the load balancer, restart it by running the new code, and return it back to the load balancer.
Removing nodes is what you should be prepared to do if you want to upgrade to new Erlang / OTP updates on your live system.
But the real problem that may arise for you is those problems that come from mesesia. I think you should ask a new question with the specifics of what mnesia needs to do. If there are no schema / table changes, and you just want to delete one node and add it later. Or if you are actually entering new tables or new columns in the tables. Mnesia does provide the ability to add and remove nodes using table replicas, and also unambiguously supports multiple table definitions using mnesia:transform_table/3,4 .
Christian
source share