-
Notifications
You must be signed in to change notification settings - Fork 24
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
Another bash script to power up|down aiven services using service tags #71
base: main
Are you sure you want to change the base?
Conversation
@lornajane - what do you think about this from Olivier. An example of why you might want to tag Aiven services? |
@@ -0,0 +1,101 @@ | |||
#!/bin/bash | |||
|
|||
# jq needs to be installed https://stedolan.github.io/jq/ |
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.
Would this (or a smaller version of it?) be useful in the USAGE output? For those folks like me who just download and run things :)
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.
I like this idea! A bit like Git that says "no no but you might have wanted to write this instead?" ;)
done | ||
|
||
echo "Turning [$POWER] services for project [$PROJECT] tagged [$TAG_ENV]" | ||
|
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.
There are services that either have complete data loss (e.g. Kafka) or run the risk of partial data loss (e.g. Redis) when being powered off. Is a confirmation dialog that acknowledges this risk important here?
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.
Oh right! Why not. Let's go for a confirmation dialog then!
I really like the start sequence as a reason to tag services, it's a nice real-world use case! @olivierhuber-aiven would you consider writing this as a blog post with explanation and the |
Thanks @lornajane |
This is bash script exemple to power up|down aiven services in a defined order|sequence using services tags
![services-tags-env-screenshot](https://user-images.githubusercontent.com/118545396/206579106-c9d8f90f-66d7-449b-8bbd-e1726c252f2b.png)
The service tags could look like this in the Aiven console: