[erlang-questions] release upgrades and code loading
Thu Feb 13 20:03:24 CET 2014
Thanks for your help.
Here's a recent relup. After this upgrade, I had to manually code_load
and purge app1:
On 13/02/2014 18:54, Mike Oxford wrote:
> Is your brutal_purge on the PostPurge or the PrePurge?
> On Thu, Feb 13, 2014 at 10:00 AM, Ivan Uemlianin <
> <mailto:>> wrote:
> Dear All
> I am just getting started with live release upgrades, using relx and
> following this tutorial:
> Everything seems to work as advertised, except sometimes I need to
> explicitly load the code into the running vm (i.e., using
> code_load_file/1) for the new stuff to take effect. The function
> release_handler:which___releases/0 reports the new release as active
> and permanent, but I can see from behaviour that old versions of
> certain modules are still running and handling data.
> I can't be much more specific I'm afraid. One example: one
> application uses cowboy. If a release upgrade changes a cowboy
> resource module, the new release version might still be running the
> old version of that module until I load_file and purge.
> Why might this be happening? Am I missing something in the
> packaging and upgrade process? Is there a better way I can write my
> If the information above is too vague, what should I look out for
> next time this happens?
> With thanks and best wishes
> Ivan A. Uemlianin PhD
> Speech Technology Research and Development
> www.llaisdy.com <http://www.llaisdy.com>
> llaisdy.wordpress.com <http://llaisdy.wordpress.com>
> github.com/llaisdy <http://github.com/llaisdy>
> festina lente
> erlang-questions mailing list
Ivan A. Uemlianin PhD
Speech Technology Research and Development
More information about the erlang-questions