Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Handle network errors in proper way #60

Merged
merged 2 commits into from
Sep 12, 2016
Merged

Handle network errors in proper way #60

merged 2 commits into from
Sep 12, 2016

Conversation

antban
Copy link
Contributor

@antban antban commented Sep 8, 2016

Or at least allow to recover after it. Fixes #59

def get_aws_region(self) -> str:
doc = self._get_document()
return doc['region'] if doc else None
document = requests.get('http://{}/latest/dynamic/instance-identity/document'.format(self.aws_addr),
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this magic endpoint?
And what is the magic address '169.254.169.254'?

Copy link
Contributor Author

@antban antban Sep 8, 2016

Choose a reason for hiding this comment

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

@antban
Copy link
Contributor Author

antban commented Sep 9, 2016

@v-stepanov @rcillo @adyach @v1ctor Are there any other suggestions? This bugfix is really important.

@antban antban merged commit c9e5cf8 into master Sep 12, 2016
@retnuh
Copy link

retnuh commented Sep 13, 2016

@antban Hey any chance of a new release with this fix? We're using bubuku ourselves, and seen some strange problems, and would like to know if the recent fixes clear the problems up.

Thanks,

H

@antban
Copy link
Contributor Author

antban commented Sep 17, 2016

@retnuh Wow, lost this comment. I plan to release on Monday evening (19.09) or 20.09. The thing is that I want to include optimized rebalancing. It's one of the important features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants