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

replace individual endpoint_cnt read from store with 1 bulk read #1632

Merged
merged 2 commits into from
Feb 2, 2017

Commits on Feb 2, 2017

  1. replace individual endpoint_cnt read from store with 1 bulk read

    getNetworksFromStore reads networks and endpoint_cnt from the kvstores.
    endpoint_cnt especially is read in a for-loop for each network and that
    causes a lot of stress in poorly performing KV-Stores.
    This fix eases the load on the kvstore by fetching all the endpoint_cnt
    in a single read and the operation is performed on it.
    
    Signed-off-by: Madhu Venugopal <madhu@docker.com>
    mavenugo committed Feb 2, 2017
    Configuration menu
    Copy the full SHA
    5e7857a View commit details
    Browse the repository at this point in the history
  2. Trust the endpoint state if we have a valid sandbox-id

    Signed-off-by: Madhu Venugopal <madhu@docker.com>
    mavenugo committed Feb 2, 2017
    Configuration menu
    Copy the full SHA
    4dd1d9c View commit details
    Browse the repository at this point in the history