| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I5a818d5a2a73af45b60fee74f8d190d5111eb275
|
|
|
|
| |
Change-Id: I472fb72bfaf90a11b11e4d802da3981325a95408
|
|
|
|
|
|
|
|
|
|
|
| |
As per the comment#12 in [1], the if loop can be removed
and json can be directly imported from bench.py
[1]: https://review.openstack.org/#/c/264486/
TrivialFix
Depends-On:I7c8a1a39f0e86cbd38466c2dcd611a8f513c8adc
Change-Id: I519753b0db0d8eee70c84afa92dfab2b943afbac
|
|
|
|
|
|
|
| |
Keep eventlet version same as Swift dependency.
This update matches the OpenStack global requirements version.
Change-Id: Ic8136901a6bc6447ea7248ed3e699ed0f9c0448a
|
|
|
|
|
|
|
|
| |
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.
Change-Id: I5382f1b2100ba15fb4a6f501d3885984a68579ab
|
|
|
|
|
|
|
|
|
|
| |
Caching is enabled by default from pip version 6.0
More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching
Change-Id: I1fe8420806ea45ebc3d455f281bdbe49e0d94e7c
|
|\ |
|
| |
| |
| |
| |
| |
| | |
also changed a variable name to pass a new hacking check
Change-Id: Ib64adcc6c986528e619ee42abc21f42f9f2dfbf4
|
|/
|
|
|
|
|
| |
swift-bench test results could be altered when using HTTP proxy server.
This patch add warning when HTTP proxy has been detected.
Change-Id: Id818203345914efee37852e96541c259de6ae555
|
|
|
|
|
|
|
|
| |
provide ability for user to select which storage policy
to run benchmark against
Change-Id: I9973f964ec3989281f47f853be053498e7a6e51e
Signed-off-by: Thiago da Silva <thiago@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Fixes a bug when using the --log-level/-o option. These are currently not
usable, because a condition always exits if there are not exactly two
command-line arguments used (the ip and port).
This patch also ensures that the used log-level settings are valid choices.
Change-Id: I5d64e57b59947c059924fce3e458cfe9fa284318
|
|
|
|
| |
Change-Id: Idba39e06e3db8eca84f3cef8c597ad222cf6d532
|
|
|
|
|
|
|
|
|
| |
next(iterable) is supposed to return the next thing in the sequence;
here, that's a bunch of zeros. However, this was returning a generator
that yielded one item: a bunch of zeros. This broke direct
benchmarking.
Change-Id: I2fca4795fc9b3d1637c72616a52a60482d6e853e
|
|
|
|
| |
Change-Id: I68943058d613387ea5bb675dc720148318989afd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.
Change-Id: Idc298cccd88eb7c929a648e31e129d4355ef7270
Closes-Bug: #1277495
|
|
|
|
| |
Change-Id: Ie4c17c36e70e1ffb4f2c1384df0322521130939e
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
- minVersion to 1.6 for tox as well to get a much faster run.
Closes-Bug: #1269054
Change-Id: I8bbb74fc515dd3f8ac05ee258a58cd19d6d09c58
|
|/
|
|
|
|
| |
This was hardly used and remove a dependence on main swift.
Change-Id: I29b3a0cdeb00b4414d6fed9e1ab0a63b54c1539a
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
I can't seem to figure out how to have testr and coverage working
properly without pbr so let's use nosetests for it.
Change-Id: Id0f2fc348dc822af9189178b518d2dda711b060c
|
| |
| |
| |
| | |
Change-Id: I10c1e928e5ddb3a89ea8767964f0735f13f873e8
|
| |
| |
| |
| | |
Change-Id: Ia50c3f50aa306b4c8c9519ce9b58315e4b14b263
|
| |
| |
| |
| | |
Change-Id: I03a51448221e2e9bb6eb1981d125fe59971d5dc7
|
|/
|
|
| |
Change-Id: Ie567b59943029f3ae569576b5c8f1d0942a36a0a
|
|
|
|
|
|
|
|
|
| |
Remove the dependence on swift, import the only needed functions from
swift.common.utils to swiftbench.utils
Add tests for utils using mock instead.
Change-Id: I1b69dce750b55f3ee0e999fb5a7100cf811f7ebe
|
|
|
|
|
|
|
|
|
| |
- Update .gitignore to ignore all testrunners.
- Move swift-bench to swiftbench.
- Move tests to tests/
- Add some simple {test-,}requirements (more works needs to be done to get proper versioning)
Change-Id: Iab4d65f02cbce8c99ecafa30d15c4cb11f0b4293
|
|
|
|
| |
Change-Id: Ifbb8941e916a586db0f71cbc734cadd8b2ade791
|
|
|
|
| |
Change-Id: Iddce2d474bf7a44d6c0b479d8d01a768877695ca
|
|
|
|
|
| |
Change-Id: I7c3df47c31759dbeb3105f8883e2688ada848d58
Closes-bug: #1214176
|
|
|
|
| |
Change-Id: I53cea28a6d7593a1b308dbcf77dddf7f40d76cb2
|
|
|
|
|
|
|
|
| |
except x,y: was deprected and is removed in Python 3.x.
Use "except x as y:" instead which works in any Python
version >= 2.6.
Change-Id: I7008c74b807340f3457d3a0c8bd0b83f23169d14
|
|
|
|
|
|
|
|
| |
Address all the "hacking" lines that are flagged, and all the modules
that just have one item flagged.
Change-Id: I372a4bdf9c7748f73e38c4fd55e5954f1afade5b
Signed-off-by: Peter Portante <peter.portante@redhat.com>
|
|
|
|
|
|
|
| |
Single-host bench controller should be monkey-patched to achieve
maximum concurrency.
Change-Id: I77c63773edc7427d06c2fbfb67ededf36d9913d3
|
|
|
|
|
|
|
|
|
|
|
| |
With enable write affinity, it's necessary to wait until
replication has moved things to their proper homes before
running delete request. With write affinity turned on, only
nodes in local region will get the object right after PUT request.
Fix bug #1198926
Change-Id: I3aa8933d45c47a010ae05561e12176479e7c9bcc
|
|
|
|
| |
Change-Id: I9496dab9e8f779a7ae045bb73b2cf8e77bda0d30
|
|
|
|
|
|
|
| |
Replaced it with explicitly importing the gettext function, which is
significantly more readable.
Change-Id: Ia0a7edcf685fb6e4052a8290367b233169529ab8
|
|
|
|
|
| |
Change-Id: I5286cd1b066da11eef98dbfea9252366ca3ffd9c
Signed-off-by: Peter Portante <peter.portante@redhat.com>
|
|
|
|
|
|
|
|
| |
Protect X-Remove-Account-Meta-Quota-Bytes same as X-Account-Meta-Quota-Bytes
Fixes bug 1204110
Change-Id: Ibac5b555f50b1fe41b2999c0d5776d90f9c9f3d1
|
|
|
|
|
|
|
| |
I focussed primarily on F-category violations, they are all but all fixed with
this patch.
Change-Id: I343f6945c97984ed1093bc347b6def6994297041
|
|
|
|
|
|
|
| |
Ignore build/ directory, which is auto-created when running `python
setup.py bdist` like dist/ directory.
Change-Id: Ie58936320d995e4e81f8929128475e538665bde8
|
|
|
|
|
|
|
|
|
| |
When swift-bench is run in direct mode, don't try to delete the
containers which weren't created.
Fixes bug 1177960.
Change-Id: Ice07e8729bb776e2b215894cf95fb80b64167a8d
|
|
|
|
|
|
| |
remove duplicated key from swift-bench bin; and also add .idea to gitignore
Change-Id: I31360489716d03324b8d2bb1c51e282393069c13
|
|
|
|
|
|
|
|
|
| |
Using root logger will make public module log failed by unknow keyword.
Just change the logger name to module itself could dismiss this impact.
And disable logger.propagate could prevent double outputing.
Change-Id: I18696d124ebac9ca970d502558972e51de759097
Fixes: bug #1105133
|
|
|
|
|
|
|
|
|
|
|
| |
pyflakes itself can't be used in any automated gating way, because there are
two sets of false errors it raises. However, as an exercise, cleaning up the
'valid' ones uncovered three actual bugs. The other changes (mostly unused
variables) are included here for fun.
Command run: pyflakes swift | grep -v "undefined name '_'"
Change-Id: I18696bf047dedad1a9fdbde3463e214fba95f7c6
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These settings:
1. are already exposed via config file
2. were not exposed as command-line options, and
3. are things I wanted on the command line while benchmarking recently.
I didn't include short options for --(get|put|delete)-concurrency
since I couldn't think of good single-letter ones, and optparse won't
take "-gc", "-pc", or "-dc".
Change-Id: I0bd7c7ae2892244eed37b8c10c9357dc7e1190d3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you specified num_gets = 0 for a benchmarking run (say, if you're
benchmarking PUT rate), you'd still get each swift-bench-client
process doing 1 GET request. Now you don't.
This should also fix the case where you've got more objects than
swift-bench-client processes, for example when you're uploading a few
large objects and then doing lots of parallel GETs of those
objects. Now you'll get the number requested, not
max(number-requested, number-of-bench-clients).
Change-Id: Ied9eb733dd9af51a3c6af8b815ad6cff0ff746b7
|
|
|
|
|
|
|
|
|
| |
Ran dos2unix on LICENSE to convert to unit style line endings.
This makes building packages which contain the LICENSE file
a bit nicer... and matches other LICENSE files under the openstack
umbrella which have unix style line endings as well.
Change-Id: Id724d1ba402a590725a2d200f5e0599bce696e5a
|
|
|
|
|
| |
Change-Id: I5fe38f28896d086e56ba9e718b02227d87dd4a2d
Signed-off-by: Peter Portante <peter.portante@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, swift-bench would create a string of the right size and pass
that to [direct_]put_object. Uploading 5 GB objects w/concurrency of
4? Hope you've got a spare 20 GB of RAM in that machine.
Now it lazily generates chunks (of size 64 KiB) to send. In my limited
testing, this keeps RAM usage low while not impacting speed.
There's backwards-compatibility code in
direct_client.direct_put_object for any callers who are still passing
in strings. There aren't any such in Swift's codebase, though. All one
of those callers now pass an iterable.
Fixes bug 911925.
Change-Id: I40669fc00c7fb6699d8fb514e1be9b69436eca42
|