推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Achilless
V2EX  ›  Python

实现一个快速端口健康检查工具

  •  
  •   Achilless · Mar 7, 2021 · 1230 views
    This topic created in 1919 days ago, the information mentioned may be changed or developed.
    后端大概 1000 台 server,端口固定 8080
    每 5 秒之准确检查完 server 的端口是否健康,并把健康的写入 redis

    有可能实现吗
    luckyc
        1
    luckyc  
       Mar 8, 2021
    可以, 搞 1000 线程
    用 socket 测试端口, 超时时间设 4 秒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:05 · PVG 07:05 · LAX 16:05 · JFK 19:05
    ♥ Do have faith in what you're doing.