Ticket #1064 (closed defect: invalid)
bcfg2-admin pull unusably slow
Reported by: | solj | Owned by: | [email protected]… |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: | [email protected]… |
Description
There is some sort of regression that has caused this recently. Need to pinpoint what caused it.
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 11 years ago by solj
- Cc [email protected]… added
comment:2 in reply to: ↑ 1 Changed 11 years ago by solj
- Cc [email protected]… added
Fixing wiki formatting.
Replying to solj:
The problem appears to have been introduced somewhere in bd0fd1c4c32864414b60b51828c79198503cb3f6. I have not yet figured out exactly where, but this commit causes bcfg2-admin pull to run approximately twice as long.
To test:
cat /var/lib/bcfg2/Bundler/test.xml
<Bundle name="test">
<Path name='/test.txt'/>
</Bundle>
- mkdir -p /var/lib/bcfg2/Cfg/test.txt
- touch !$/test.txt
- echo "blah" > /test.txt
- bcfg2 -vqn
- bcfg2-admin pull <clientname> Path /test.txt
I will look more closely and see if I can figure out why this is happening.
comment:3 Changed 11 years ago by solj
- Status changed from new to closed
- Resolution set to invalid
I think this was my fault. Pulling the updates into my git repo caused a lot of pyc files to need to be regenerated. I think just the sheer number of files changed caused the behavior I was seeing. Once the new pyc files are generated, things go back to normal.
comment:4 Changed 11 years ago by solj
- Cc [email protected]… removed
- Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.2.0 Release
The problem appears to have been introduced somewhere in bd0fd1c4c32864414b60b51828c79198503cb3f6. I have not yet figured out exactly where, but this commit causes bcfg2-admin pull to run approximately twice as long.
To test:
#. cat /var/lib/bcfg2/Bundler/test.xml <Bundle name="test">
</Bundle> #. mkdir -p /var/lib/bcfg2/Cfg/test.txt #. touch !$/test.txt #. echo "blah" > /test.txt #. bcfg2 -vqn #. bcfg2-admin pull <clientname> Path /test.txt
I will look more closely and see if I can figure out why this is happening.