04 2021 档案

摘要:import threading import time import logging class TimeoutWrapper(object): def __init__(self, timeout, process): self.timeout = timeout self.timer = No 阅读全文
posted @ 2021-04-14 10:44 GhostAnt 阅读(105) 评论(0) 推荐(0)
摘要:import threading import os class LockedFile(object): SETUP_LOGGER_LOCK = threading.Lock() LOGFILES = {} @classmethod def open(cls, fn): with cls.SETUP 阅读全文
posted @ 2021-04-14 10:22 GhostAnt 阅读(305) 评论(0) 推荐(0)
摘要:一、Consul Connect tips: -dev 1.service definition counting.json { "service": { "name": "counting", "id": "counting-1", "port": 9003, "check": { "http": 阅读全文
posted @ 2021-04-08 22:46 GhostAnt 阅读(182) 评论(0) 推荐(0)