Why is the value not incrementing?

Scenario: You are manually creating Consul snapshots in preparation for an upgrade.

You save two snapshots, as shown in the commands below:

After inspecting the snapshots, you have noticed that the version number of the snapshot is not incrementing, and both snapshots display a value of 1.

Why is the value not incrementing?

A . the version number does not correspond to the version of data, rather it is the snapshot format version
B. since the snapshot name is different, the version indicates that it is the first version of a snapshot with that particular name
C. the version is synonymous with the version of Consul, and this snapshot was created on a cluster running Consul 1.x.x
D. the snapshot was not created with the proper flag to indicate it was not the first version of the
snapshot

Answer: A

Explanation:

The version field indicates the snapshot format version. This only refers to the structure of the snapshot,

not the data contained within.

https://www.consul.io/docs/commands/snapshot/inspect.html#version

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments