Is etcd suitable for frequently changing key values? #16520
-
I want to know that whether etcd is suitable for frequently changing key values?thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes it is - You can easily change values of keys using Let's say you have created a key using Now when you run |
Beta Was this translation helpful? Give feedback.
-
Hey @AuroraTwinkle - Thanks for your question. Without more detail I can't get into any specifics, but in general, as mentioned by @TheUncertainOracle above, etcd can certainly be used for frequently changing values. Depending on how often these values are changing please be aware of etcd periodic maintenance procedures and tuning: https://etcd.io/docs/v3.5/op-guide/maintenance |
Beta Was this translation helpful? Give feedback.
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 runetcdctl 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 runetcdctl 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.