From 7295c8944711dca16e98a15e2bce335c996a6bb3 Mon Sep 17 00:00:00 2001 From: xueyingcai Date: Sat, 2 Mar 2024 22:14:59 +0800 Subject: [PATCH] add h2 header, issue https://github.com/etcd-io/website/issues/790 --- .../en/docs/v3.4/op-guide/configuration.md | 10 +++--- .../docs/v3.5/tutorials/how-to-access-etcd.md | 31 +++++++++++++++++-- .../docs/v3.6/tutorials/how-to-access-etcd.md | 31 +++++++++++++++++-- 3 files changed, 63 insertions(+), 9 deletions(-) diff --git a/content/en/docs/v3.4/op-guide/configuration.md b/content/en/docs/v3.4/op-guide/configuration.md index 353728c0..40333528 100644 --- a/content/en/docs/v3.4/op-guide/configuration.md +++ b/content/en/docs/v3.4/op-guide/configuration.md @@ -98,11 +98,6 @@ The list of flags provided below may not be up-to-date due to ongoing developmen + default: 0 + env variable: ETCD_BACKEND_BATCH_LIMIT -### --backend-bbolt-freelist-type -+ The freelist type that etcd backend(bboltdb) uses (array and map are supported types). -+ default: map -+ env variable: ETCD_BACKEND_BBOLT_FREELIST_TYPE - ### --backend-batch-interval + BackendBatchInterval is the maximum time before commit the backend transaction. + default: 0 @@ -458,6 +453,11 @@ Follow the instructions when using these flags. ## Experimental flags +### --experimental-backend-bbolt-freelist-type ++ The freelist type that etcd backend(bboltdb) uses (array and map are supported types). ++ default: array ++ env variable: ETCD_EXPERIMENTAL_BACKEND_BBOLT_FREELIST_TYPE + ### --experimental-corrupt-check-time + Duration of time between cluster corruption check passes + default: 0s diff --git a/content/en/docs/v3.5/tutorials/how-to-access-etcd.md b/content/en/docs/v3.5/tutorials/how-to-access-etcd.md index f1ceeb2d..59692d26 100644 --- a/content/en/docs/v3.5/tutorials/how-to-access-etcd.md +++ b/content/en/docs/v3.5/tutorials/how-to-access-etcd.md @@ -7,15 +7,42 @@ weight: 200 ![02_etcdctl_access_etcd_2016051001](https://storage.googleapis.com/etcd/demo/02_etcdctl_access_etcd_2016051001.gif) -`put` command to write: +## Prerequisites + +- [etcdctl](/docs/v3.5/dev-guide/interacting_v3/) is required + +## Write to an etcd cluster + +The `put` command is used to write to etcd in the format `etcdctl --endpoints= put [OPTIONS]`. ```shell etcdctl --endpoints=$ENDPOINTS put foo "Hello World!" ``` +The variables in the above example are: +- $ENDPOINTS = +- foo = +- "Hello World" = -`get` to read from etcd: +## Read from an etcd cluster + +The `get` command is used to read from etcd in the format `etcdctl --endpoints= get `. ```shell etcdctl --endpoints=$ENDPOINTS get foo +``` + +The variables in the above example are: +- $ENDPOINTS = +- foo = + +All commands can accept an output format by setting `-w` or `--write-out` with an output format: `simple`, `json`, `protobuf`, or `fields`. +The output format is used in the following format `etcdctl --endpoints= --write-out=`. + +```shell etcdctl --endpoints=$ENDPOINTS --write-out="json" get foo ``` + +The variables in the above example are: +- $ENDPOINTS = +- "json" = +- foo = diff --git a/content/en/docs/v3.6/tutorials/how-to-access-etcd.md b/content/en/docs/v3.6/tutorials/how-to-access-etcd.md index f1ceeb2d..eeefe9ef 100644 --- a/content/en/docs/v3.6/tutorials/how-to-access-etcd.md +++ b/content/en/docs/v3.6/tutorials/how-to-access-etcd.md @@ -7,15 +7,42 @@ weight: 200 ![02_etcdctl_access_etcd_2016051001](https://storage.googleapis.com/etcd/demo/02_etcdctl_access_etcd_2016051001.gif) -`put` command to write: +## Prerequisites + +- [etcdctl](/docs/v3.6/dev-guide/interacting_v3/) is required + +## Write to an etcd cluster + +The `put` command is used to write to etcd in the format `etcdctl --endpoints= put [OPTIONS]`. ```shell etcdctl --endpoints=$ENDPOINTS put foo "Hello World!" ``` +The variables in the above example are: +- $ENDPOINTS = +- foo = +- "Hello World" = -`get` to read from etcd: +## Read from an etcd cluster + +The `get` command is used to read from etcd in the format `etcdctl --endpoints= get `. ```shell etcdctl --endpoints=$ENDPOINTS get foo +``` + +The variables in the above example are: +- $ENDPOINTS = +- foo = + +All commands can accept an output format by setting `-w` or `--write-out` with an output format: `simple`, `json`, `protobuf`, or `fields`. +The output format is used in the following format `etcdctl --endpoints= --write-out=`. + +```shell etcdctl --endpoints=$ENDPOINTS --write-out="json" get foo ``` + +The variables in the above example are: +- $ENDPOINTS = +- "json" = +- foo =