Passwd speedup - #2084
Conversation
- do not keep passwords in databag (/etc/cloudstack/vmpasswd.json) - process only the password we get in (vm_password.json) from mgt server - lookup the correct passwd server instead of adding passwd to all of them Example: - 4 tiers and 199 VMs running - Start vm 200 would cause new passwd from vm_password.json (1) to be merged with /etc/cloudstack/vmpasswd.json (199) - A curl command was exected foreach password (200) foreach tier (4) resulting in 800 calls - In fact, since passwds are never cleaned it could very well be even more as the ip address was the key in the json file so until the ip address was reused the original password would remain and be sent to passwd server every time another vm starts. - This took ~40 seconds Now we just figure out the right tier and only process the new password resulting in a single curl call. - takes 0,03 seconds!
|
@karuturi I don't think it needs CI (yet), it needs testing and review! I don't think ci can assess performance issues, unless with a lot of compute power. |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
remibergsma
left a comment
There was a problem hiding this comment.
Runs fine in Cosmic for over a year. LGTM
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-713 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1083)
|
|
/marvin/tests/smoke/test_privategw_acl.py is known not to work, we need to find time to work on that one, but it is surely unrelated. |
* 4.9: Revert "Merge pull request apache#2084 from shapeblue/passwd-speedup"
|
This was reverted, any plans to work on it @DaanHoogland ? |
No description provided.