Skip to content

Commit

Permalink
Add availability_zone filed to INFO command (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Feb 10, 2025
1 parent abe8da8 commit dfff87b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ RESP2, although future version may default to RESP3.

`HELLO` always replies with a list of current server and connection properties,
such as: versions, modules loaded, client ID, replication role and so forth.
(The availability_zone field only shows up when it is set in the configs.)
The `availability_zone` field only shows up when it is set in the configs,
see `availability-zone` config for more details, added in Valkey 8.1.

When called without any arguments and its default use of RESP2
protocol, the reply looks like this:
Expand Down
2 changes: 2 additions & 0 deletions commands/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ lru_clock:3425456
executable:/home/viktor/repos/valkey/src/./valkey-server
config_file:
io_threads_active:0
availability_zone:
listener0:name=tcp,bind=*,bind=-::*,port=6379
# Clients
Expand Down Expand Up @@ -292,6 +293,7 @@ Here is the meaning of all fields in the **server** section:
* `executable`: The path to the server's executable
* `config_file`: The path to the config file
* `io_threads_active`: Flag indicating if I/O threads are active
* `availability_zone`: Inform Valkey of the Availability zone if running in a cloud environment, see `availability-zone` config for more details. Added in Valkey 8.0.
* `shutdown_in_milliseconds`: The maximum time remaining for replicas to catch up the replication before completing the shutdown sequence.
This field is only present during shutdown.

Expand Down

0 comments on commit dfff87b

Please sign in to comment.