Skip to content

Commit

Permalink
Clarify generation of EffectiveConfig hash (#30)
Browse files Browse the repository at this point in the history
Resolves #19

This clarifies that the hash of the effective config is calculated by the Agent.
  • Loading branch information
tigrannajaryan authored Nov 16, 2021
1 parent 2ea8076 commit 56d13cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,14 @@ message EffectiveConfig {

<h4 id="hash">hash</h4>


The hash of the effective config. After establishing the OpAMP connection if the
effective config did not change since it was last reported during the previous
connection sessions the Agent is recommended to include only the hash and omit
the config_map field to save bandwidth.
The hash of the effective config. The hash is calculated by the Agent from the
content of the effective config (from the names and content of all items in the
config_map field).

After establishing the OpAMP connection if the effective config did not change
since it was last reported during the previous connection sessions the Agent is
recommended to include only the hash field and omit the config_map field to save
bandwidth.

The Server SHOULD compare this hash with the last hash of effective config it
received from the Agent and if the hashes are different the Server SHOULD ask
Expand Down

0 comments on commit 56d13cf

Please sign in to comment.