Forum Discussion
Sylvain_Augé_72
Nimbostratus
Aug 04, 20085 seconds to execute a simple function.......
Hello again,
as you already know it I developped an application using the language C to access the F5 loadbalancers to get some informations and print them on a webpage.
I am using a dll to get all the desired fonctions that i could need.
My problem is that this code :
NodeAddress.LocalLBNodeAddressNodeAddressStatistics statistics = NodeAddress.get_statistics(node_liste);
takes 5 seconds to be executed ! The "node_liste" is an array containing 16 nodes !
Do you have any idea why it takes such a long time ?
Thanks a lot
Sylvain
- That method should not take 5 seconds. The only thing I can think of is that if it's the first method call on the interface, there may be some overhead in setting up the SSL connection but it shouldn't take 5 seconds. I just tried that method with 18 nodes and it returned in 0.066s.
- Sylvain_Augé_72
Nimbostratus
Hello !public void get_node_list(string partition, string Hostname, string Username, string Password) { iControl.Interfaces my_interface = new iControl.Interfaces(); my_interface.initialize(Hostname, Username, Password); my_interface.ManagementPartition.set_active_partition(partition); string[] node_list_i = my_interface.LocalLBNodeAddress.get_list(); list_node = node_list_i; } public string[] get_list_node() { return list_node; }
- Your first example was calling the get_statistics() method and this only calls the get_list() method. Are both methods slow? What about the set_active_partition() method? That should execute very fast as it's just an in-memory variable setting on the server. Is that one performing slow as well?
- Sylvain_Augé_72
Nimbostratus
No the get_list() method is fast or at least normal as well as the set_active_partition() method.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects