Skip to content

Instantly share code, notes, and snippets.

View brandonwestcott's full-sized avatar

Brandon Westcott brandonwestcott

View GitHub Profile
@brandonwestcott
brandonwestcott / gist:a350fd01651d98dc733d3e2a20eef3d6
Created April 22, 2020 00:21
Delete all S3 objects AWS CLI
aws s3api put-bucket-lifecycle-configuration --bucket $bucket --lifecycle-configuration '{"Rules":[{"Expiration":{"Days":1},"ID":"empty","Filter":{"Prefix":""},"Status":"Enabled","NoncurrentVersionExpiration":{"NoncurrentDays":1},"AbortIncompleteMultipartUpload":{"DaysAfterInitiation":1}}]}'
@mrflip
mrflip / 20130416-todo.md
Last active January 21, 2024 21:06
Elasticsearch Tuning Plan

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)