ninya-io / ninya.io

Find StackOverflow users near you by tags and reputation
MIT License
60 stars 13 forks source link

Set up a new elasticsearch index with lots of breaking changes :) #35

Closed cburgdorf closed 10 years ago

cburgdorf commented 10 years ago

We need to set up a new elasticsearch index with a couple of breaking changes:

What we should do:

  1. create the index production_v2
  2. create the correct mapping
  3. set _ninya_io_synced to false for all entries of the users table (NOT: users_working)
  4. stop the default elasticsearch sync
  5. run the new elasticsearch sync (v0.2.0) against the users table (NOT: users_working)
  6. wait until that's over (should take a couple of minutes)
  7. set _ninya_io_synced to false for all entries of the users_working table (this time for real!)
  8. run the new elasticsearch sync (v0.2.0) against the users_working table to also sync all the latest users.
  9. make ninya.io request data against the production_v2 index
  10. delete the production index.
cburgdorf commented 10 years ago

DONE!