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

[leo_manager] Calling leo_manager_api:get_members_of_all_versions get timeout on leo_gateway #317

Closed
mocchira opened this issue Feb 26, 2015 · 3 comments
Assignees
Milestone

Comments

@mocchira
Copy link
Member

https://github.com/leo-project/leo_gateway/blob/develop/src/leo_gateway_app.erl#L412

leo_manager_api:get_members_of_all_versions return {error, timeout} for a while.
After several timeouts happened,
leo_manager_api:get_members_of_all_versions did work.

Due to this problem,
Getting leo_gateway's status running take too much time more than previous versions.

@mocchira mocchira added the Bug label Feb 26, 2015
@mocchira mocchira self-assigned this Feb 26, 2015
@mocchira mocchira added this to the 1.2.7 milestone Feb 26, 2015
@mocchira
Copy link
Member Author

https://github.com/leo-project/leo_redundant_manager/blob/develop/src/leo_redundant_manager_worker.erl#L286
in the above function

timer:apply_after(100, leo_redundant_manager_api, create, [])

are called many times,
this makes leo_redundant_manager very high load and cause {error, timeout}.

We need to reduce this call as little as possible.

@yosukehara
Copy link
Member

We'll consider leo_redundant_manager supports mnesia's transaction for updating cluster's members.

yosukehara added a commit to leo-project/leo_redundant_manager that referenced this issue Mar 3, 2015
@mocchira
Copy link
Member Author

mocchira commented Mar 4, 2015

Confirmed.

@mocchira mocchira closed this as completed Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants