Modify

Ticket #1064 (closed defect: invalid)

Opened 10 years ago

Last modified 10 years ago

bcfg2-admin pull unusably slow

Reported by: solj Owned by: sol.jerome@…
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc: sol.jerome@…

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 10 years ago by solj

  • Cc chris.a.st.pierre@… added

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:2 in reply to: ↑ 1 Changed 10 years ago by solj

  • Cc sol.jerome@… 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>

  1. mkdir -p /var/lib/bcfg2/Cfg/test.txt
  2. touch !$/test.txt
  3. echo "blah" > /test.txt
  4. bcfg2 -vqn
  5. 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 10 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 10 years ago by solj

  • Cc chris.a.st.pierre@… removed
  • Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.2.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.