Skip to content
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

NSDS-2584 - Implement rollover of old job, task, worker, event ES docs on Mozart ES #100

Merged
merged 4 commits into from
Mar 20, 2023

Conversation

DustinKLo
Copy link
Contributor

related ticket(s):

previous related PRs:

Documentation:

utilizing ES's ILM (Index rollover mgmt) to delete older indices (90+ days)
instead of calling indices in mozart (job|worker|event|task)-status-current we are renaming them to (job|worker|event|task)-status-YYYY.mm.dd ex. job_status-2023.03.20

change(s):

  • (job|worker|event|task)-status-current is now the alias to their respective indices
  • new script to delete indices by alias b/c we cannot delete by wildcard or by alias
  • new search_by_id method in hysds_commons's ES class which allows users to get document by _id with an alias
  • moved mozart's ES templates from hysds to sdscli
  • logstash
    • for job and task indices, we use the index field in its payload to avoid duplicate indices
    • appending -%{YYYY.MM.dd} to worker and event indices
  • added ILM policy to mozart indices
    • hot - 0-90d
    • warm - 90d-97d
    • cold - 97d-104d
    • delete > 104d

mcayanan and others added 4 commits February 2, 2023 15:37
… ES (#94)

* HC-447: Add mechansim to roll of ES indices on Mozart

* install templates and bootstrap

* add new files

* cannot resolve role

* fix base path

* update

* modify to modern template payload

* update

* add comma

* dump json

* fix typo

* updates

* typo

* update

* make index pattern more specific

* remove alias

* update

* revert

* update

* update

* use the phases properly

* updated

* update

* update

* update

* add actions

* update

* update

* update policy

* update names to be consistent throughout

* revert

* revert back aliases

* update

* typo

* remove ILM from event, task, and worker templates

* remove alias

* revert back to default 8 shards

* No need to push index templates out as they are initialized elsewhere

* add aliases

* update

* update description

* bump version

* make a minor update

---------

Co-authored-by: Mike Cayanan <michael.d.cayanan@jpl.nasa.gov>
Co-authored-by: Gerald Manipon <pymonger@gmail.com>
…Mozart ES (#99)

* added lifecycle and aliases to templates

* using clean_indices_from_alias.py to remove mozart indices

* deleting templates is _index_template, not _template

* added note to location of template files

* commenting out this line b/c we shouldnt be deleting the templates

---------

Co-authored-by: dustinlo <dustin.k.lo@jpl.nasa.gov>
@DustinKLo DustinKLo requested review from pymonger and mcayanan March 20, 2023 21:46
@DustinKLo DustinKLo merged commit 7447c98 into develop Mar 20, 2023
@DustinKLo DustinKLo deleted the develop-v5 branch March 20, 2023 22:16
@DustinKLo DustinKLo restored the develop-v5 branch March 20, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants