Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for service restart #19

Merged
merged 3 commits into from Jan 26, 2018
Merged

for service restart #19

merged 3 commits into from Jan 26, 2018

Conversation

sevenEng
Copy link
Contributor

for issue me-box/databox#230
together with core-network#restart-app

before killing the container, get it's IP as old_ip
after the restart, get the new_ip, if different, call on core-network to do the substitution

seems to still have some timing issue in this solution, as the container's new IP is available, but before states within core-network is updated, traffic will not be able to get through

tested by restarting both app and driver (for os-monitor)

@sevenEng sevenEng changed the title for service start for service restart Jan 19, 2018
for (const containerInfo of containers) {
//console.log(JSON.stringify(containerInfo));
for (var net_name in containerInfo.NetworkSettings.Networks) {
let service_name = name.replace("-core-store", "").replace("-store-json", "");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is restarting stores not a good idea now?
This line is basically to guarantee that restarting a store could work too, at least at the level of core-network
but seems to have some key/token issues involved after a new store comes to life

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got lines of

CURVE I: cannot open client HELLO -- wrong server key?

from new store's output

@Toshbrown Toshbrown merged commit e4e4b76 into me-box:master Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants