mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
doc: add lease time
The current lease time is short and as such can lead to a timeout error as explained in the related issue which can be confusing. Fixes #9726
This commit is contained in:
@@ -533,8 +533,8 @@ Prints a message with the granted lease ID.
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
./etcdctl lease grant 10
|
||||
# lease 32695410dcc0ca06 granted with TTL(10s)
|
||||
./etcdctl lease grant 60
|
||||
# lease 32695410dcc0ca06 granted with TTL(60s)
|
||||
```
|
||||
|
||||
### LEASE REVOKE \<leaseID\>
|
||||
@@ -609,8 +609,8 @@ Prints a message with a list of active leases.
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
./etcdctl lease grant 10
|
||||
# lease 32695410dcc0ca06 granted with TTL(10s)
|
||||
./etcdctl lease grant 60
|
||||
# lease 32695410dcc0ca06 granted with TTL(60s)
|
||||
|
||||
./etcdctl lease list
|
||||
32695410dcc0ca06
|
||||
|
||||
Reference in New Issue
Block a user