Skip to content

Is etcd suitable for frequently changing key values? #16520

Answered by Shayah-01
AuroraTwinkle asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it is - You can easily change values of keys using etcdctl put <key> <value>.

Let's say you have created a key using etcdctl put name XYZ. When you run etcdctl get name for retrieving the value of the name key, you will see that the value is XYZ. But if after this, you think you need to update the value of the name key, you would just have to run etcdctl put name newXYZ.

Now when you run etcdctl get name again, you will be displayed the most recent value of the key. You can also keep track of the previous values of a key.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jmhbnz
Comment options

You must be logged in to vote
2 replies
@AuroraTwinkle
Comment options

@jmhbnz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment