Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- ERR_CERT_INVALID
- yum
- Cannot upload enabled repos report
- 테라폼 버전
- v1alpha1
- AWS
- OSX 엑셀
- invalid apiVersion
- EKS
- 맥북 한글
- 인증서
- terraform
- ovirt
- tfenv
- 타임머신
- 빠르게
- 맥북 엑셀 한글
- 버전관리
- 테라폼
- 연결이 비공개
- rhv
- 맥북 백업
- Chrome
Archives
- Today
- Total
목록Python (1)
hisosic
ElastiCache (Redis) Socket Connect Timeout Check
#!/bin/env python3 from redis import Redis from datetime import datetime import time redis_host = 'cxx-redis-sxxx.lxxxm.0001.usw2.cache.amazonaws.com' while True: res = False time.sleep(0.5) now = datetime.today().strftime("%H:%M:%S") try: r = Redis(redis_host, socket_connect_timeout=1) # short timeout for the test res = r.ping() except Exception as e: print(f"[{now}] ERROR {res}, {e}") if res: ..
Python
2021. 6. 24. 20:12