Skip to content

LIBCLOUD-590 - Reduce redundant API calls of CloudStack compute driver's...#332

Closed
atsaki wants to merge 7 commits intoapache:trunkfrom
atsaki:590_reduce_cloudstack_list_nodes_api_calls
Closed

LIBCLOUD-590 - Reduce redundant API calls of CloudStack compute driver's...#332
atsaki wants to merge 7 commits intoapache:trunkfrom
atsaki:590_reduce_cloudstack_list_nodes_api_calls

Conversation

@atsaki
Copy link
Contributor

@atsaki atsaki commented Jun 30, 2014

CloudStack compute driver's list_nodes method executes too many API calls and it slows down this method.
The patch reduces redundant API calls and speed up list_nodes method.

https://issues.apache.org/jira/browse/LIBCLOUD-590

@sebgoa
Copy link
Member

sebgoa commented Jul 6, 2014

thanks for your patches, I am a bit busy this coming days, but I will try to comment/merge as soon as possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks to broad to me. What does it catch? Why would you catch all the things and not fail here?

@allardhoeve
Copy link
Contributor

This is a complex function that can be broken down into smaller bits to make it much more legible. That is not the scope of the PR though.

I think this is fine, but we could actually use some more tests here. The lack of tests makes me hesitant to merge it. I would be much more comfortable if the test_list_nodes method contained at least an entry that has the correct IPs. I would like to see these added to the tests with their expected contents:

  1. node.extra['ip_addresses']
  2. node.extra['ip_forwarding_rules']
  3. node.extra['port_forwarding_rules']

@sebgoa
Copy link
Member

sebgoa commented Oct 29, 2015

@atsaki do you plan to work on this ? @allardhoeve made some good comments, could you answer ?thanks

@allardhoeve
Copy link
Contributor

My comments still stand ofcourse.

@atsaki
Copy link
Contributor Author

atsaki commented Nov 7, 2015

I'm working on this. Please wait for a few days.

@atsaki atsaki force-pushed the 590_reduce_cloudstack_list_nodes_api_calls branch from 8c1e211 to 56c150a Compare November 7, 2015 10:06
@atsaki atsaki force-pushed the 590_reduce_cloudstack_list_nodes_api_calls branch from 4b424e7 to e08cfcd Compare November 10, 2015 16:10
@atsaki atsaki force-pushed the 590_reduce_cloudstack_list_nodes_api_calls branch from 13a63c9 to afafdff Compare November 12, 2015 15:53
@atsaki
Copy link
Contributor Author

atsaki commented Nov 12, 2015

I updated the code to follow the comments.
Can you check them?

@allardhoeve
Copy link
Contributor

Thanks.

This is better than before.

I have no access to CloudStack, so I can't test this and I also don't feel qualified to plus one it.

@asfgit asfgit closed this in 0e7454d Nov 23, 2015
@sebgoa
Copy link
Member

sebgoa commented Nov 24, 2015

@atsaki this was closed by mistake as we are trying to close some old PRs. Can you reopen again, I will merge this week.

@atsaki
Copy link
Contributor Author

atsaki commented Nov 25, 2015

@Runseb I reopened #641.

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.

3 participants