-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh cached ConfigFS data after deleting a backstore #171
base: master
Are you sure you want to change the base?
Refresh cached ConfigFS data after deleting a backstore #171
Conversation
62ea500
to
41f3108
Compare
41f3108
to
0cf3b27
Compare
@maurizio-lombardi On IRC, you mentioned some concerns about performance when the system has thousands of targets. Without this change, the daemon is only usable if you use batch mode to make all of your changes. Otherwise, you'll frequently see The daemon is appealing because it reduces |
@pkalever I think it's worth trying a test with 1000s backstores and targets and measure the performance impact, if any. |
@maurizio-lombardi @pkalever I'd also be interested in a test of this approach (only refreshing the items that need to be refreshed) versus @pkalever's PR #170 that refreshes everything. If the performance difference is negligible on @pkalever's systems with 1000s of backstores, I think the easier to read code in #170 should be used. |
I did a simple test: I created 1000 iscsi targets and 2000 backstores (1000 of which unused) Without the patch: With the patch: |
Overview
As described in Red Hat Bugzilla #1571728, some
targetcli
commands fail when the cached target configuration data becomes stale, producing errors such as...Changes from my previous pull request
Steps to reproduce the error and verify the fix
The following links go to a gist with commands to reproduce the conditions, along with the output from running the command on my machine: the "before" output is what the current release will do; the "after" output is from the code in this pull request.
iscsi
loopback
vhost
all three (iscsi, loopback, vhost)
xen-pvscsi
I do not have a Xen machine to test on. Could someone run this command and post the before/after results?