This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Re-expires objects based on previous expirer log output. | |
For example, to fix all the objects that expired during the time this bug | |
https://bugs.launchpad.net/swift/+bug/1257330 was deployed. | |
""" | |
CONF_PATH = '/some/path/rexpire.conf' # Just a copy of object-expirer.conf | |
REQUEST_TRIES = 3 | |
EXPIRING_OBJECTS_ACCOUNT = '.expiring_objects' | |
SERVICE_NAME = 'object-expirer' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script to find any old-style full urls x-container-sync-to settings. | |
Run as the user that Swift runs as and give the script one or more | |
container directories to scan, such as: | |
python find_old_style_container_sync_settings.py /srv/node/*/containers | |
It will output a line per find: account/container x-container-sync-to-value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am gholt on github. | |
* I am gholt (https://keybase.io/gholt) on keybase. | |
* I have a public key whose fingerprint is 9AFE B917 1E8C 3842 E510 CBAB 6F38 F656 22DA 4F27 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// Seconds Bytes | |
// Source 0.62s 50,331,648 | |
// JSON 1.40s 146,725,206 | |
// XML 9.14s 549,378,383 | |
// GOB 0.33s 75,349,526 | |
// Custom 0.17s 50,331,658 | |
import ( |