litl / galaxy

Docker Micro-PaaS
MIT License
119 stars 19 forks source link

Missing app causing high CPU in commander #275

Open zombor opened 8 years ago

zombor commented 8 years ago

I believe this is happening because I manually added an application to shuttle. I launched a docker container by hand (due to #272) and then PUT a config to shuttle to route to it (since I needed it on the same port as the rest of the system).

When I do this, my commander logs fill up with:

ERROR: Unable to load app %!s(<nil>): app <app-name> does not exist

When I execute commander app:create <app-name> the errors go away, of course. However this also deletes the proxy entry in shuttle.

I haven't confirmed that the high CPU usage is caused by this but it seems suspicious. When I look at top on the server, commander is always near the top of the list, using 50-75% cpu.