-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add a TIMEOUT environment variable for es rollover #2938
Add a TIMEOUT environment variable for es rollover #2938
Conversation
Signed-off-by: Edie Zhang <edie.zhang@o8t.com>
Codecov Report
@@ Coverage Diff @@
## master #2938 +/- ##
==========================================
+ Coverage 95.96% 95.98% +0.02%
==========================================
Files 224 224
Lines 9731 9731
==========================================
+ Hits 9338 9340 +2
+ Misses 324 323 -1
+ Partials 69 68 -1
Continue to review full report at Codecov.
|
Signed-off-by: Edie Zhang <edie.zhang@o8t.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
plugin/storage/es/esCleaner.py
Outdated
@@ -13,7 +13,7 @@ def main(): | |||
print('USAGE: [INDEX_PREFIX=(default "")] [ARCHIVE=(default false)] ... {} NUM_OF_DAYS http://HOSTNAME[:PORT]'.format(sys.argv[0])) | |||
print('NUM_OF_DAYS ... delete indices that are older than the given number of days.') | |||
print('HOSTNAME ... specifies which Elasticsearch hosts URL to search and delete indices from.') | |||
print('TIMEOUT ... number of seconds to wait for master node response.'.format(TIMEOUT)) | |||
print('TIMEOUT ... number of seconds to wait for master node response(default {}).'.format(TIMEOUT)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print('TIMEOUT ... number of seconds to wait for master node response(default {}).'.format(TIMEOUT)) | |
print('TIMEOUT ... number of seconds to wait for master node response (default {}).'.format(TIMEOUT)) |
plugin/storage/es/esRollover.py
Outdated
@@ -53,11 +54,14 @@ def main(): | |||
'\tUNIT ... used with lookback to remove indices from read alias e.g. ..., days, weeks, months, years (default {}).'.format( | |||
UNIT)) | |||
print('\tUNIT_COUNT ... count of UNITs (default {}).'.format(UNIT_COUNT)) | |||
print('TIMEOUT ... number of seconds to wait for master node response(default {}).'.format(TIMEOUT)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print('TIMEOUT ... number of seconds to wait for master node response(default {}).'.format(TIMEOUT)) | |
print('TIMEOUT ... number of seconds to wait for master node response (default {}).'.format(TIMEOUT)) |
@albertteoh sometimes it's easier to make the minor tweaks ourselves and push to the author's branch (unless they explicitly disabled that permission). It looks like this is ready to merge otherwise but the author didn't come back in a month. |
Signed-off-by: albertteoh <albert.teoh@logz.io>
Signed-off-by: Edie Zhang edie.zhang@o8t.com
Which problem is this PR solving?
The default 10s client timeout is too short.
Short description of the changes