kragniz / kragniz/python-etcd3
cpu too high
Open
- Dominant language
- Python
- Stars
- 450
- Forks
- 194
- PR merge metrics
- No merged PRs in 30d
Description
mport etcd3
import json
import time
etcd = etcd3.client(host='127.0.0.1', port=2379)
while True:
try:
etcd.put('test', '123456')
time.sleep(1)
print '===='
except Exception as error:
print 'error'
if kill the etcd server, then the cpu of the client is too high, maybe 80%
Contributor guide
Research direction
Run the provided Python snippet with the etcd server stopped and confirm the client CPU usage. Then trace the client behavior after the connection fails; done means the client no longer consumes excessive CPU while the server is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100