上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2023年7月20日
摘要: - untitled.py ```python # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code gener 阅读全文
posted @ 2023-07-20 09:52 JentZhang 阅读(286) 评论(0) 推荐(0)
  2023年7月17日
摘要: ### 背景 > 海量数据需要接入logstash消费到ES、Kafka等, 如并发很高的nginx日志 ### 解决方案 - docker swarm部署logstash集群 - 通过docker config增加pipline、templates ### docker-compose文件 - d 阅读全文
posted @ 2023-07-17 14:26 JentZhang 阅读(105) 评论(0) 推荐(0)
  2023年7月6日
摘要: ### 使用的python包 ```shell pip install confluent-kafka ``` ### 创建topic && 扩充partition ```python #!/usr/bin/env python # -*- coding:utf-8 -*- # @Time:2023 阅读全文
posted @ 2023-07-06 14:29 JentZhang 阅读(1466) 评论(0) 推荐(0)
  2023年6月30日
摘要: ### 介绍 > 1. 本次部署kafka3.5版本,彻底告别zookeeper时代,部署更加轻量,运维更加简单 > 2. 同时使用比较好用的kafka控制台redpandadata ### docker swam 集群搭建 - 详见我的另一篇博客 [Docker Swarm集群搭建](https: 阅读全文
posted @ 2023-06-30 18:43 JentZhang 阅读(2259) 评论(0) 推荐(0)
  2023年5月24日
摘要: ### 场景描述 1. 服务器A(172.25.114.1)目录/data下有一个文件swarmprom-master.tgz 2. 现在需要将这个文件同步到服务器B(172.25.114.2)下面的/tmp目录下。 ### 1. 在服务器A的目录/data下面执行命令 - python2 ```p 阅读全文
posted @ 2023-05-24 15:34 JentZhang 阅读(196) 评论(0) 推荐(0)
摘要: #### API: https://timor.tech/api/holiday/year/2023 > 请求结果示例 ```json { "code": 0, "holiday": { "01-01": { "holiday": true, "name": "元旦", "wage": 3, "da 阅读全文
posted @ 2023-05-24 11:05 JentZhang 阅读(6548) 评论(0) 推荐(2)
  2023年5月12日
摘要: Python 文件大小可读性转化 file_size_exchange.py #!/usr/bin/env python # -*- coding:utf-8 -*- # @Time:2023/5/12 17:52 # @Software:PyCharm __author__ = "JentZhan 阅读全文
posted @ 2023-05-12 18:00 JentZhang 阅读(480) 评论(0) 推荐(0)
  2023年5月4日
摘要: docker run --rm -it wurstmeister/zookeeper:latest bash 阅读全文
posted @ 2023-05-04 18:59 JentZhang 阅读(71) 评论(0) 推荐(0)
  2023年4月24日
摘要: 中国节假日判断 Python判断某年某月某一天是不是工作日/节假日。 支持 2004年 至 2023年,包括 2020年 的春节延长。 安装 pip install chinesecalendar 升级 pip install -U chinesecalendar 由于次年的节假日安排,取决于国务院 阅读全文
posted @ 2023-04-24 15:22 JentZhang 阅读(1042) 评论(0) 推荐(0)
  2023年4月19日
摘要: docker swarm 集群迁移 0. 先down掉集群内的stack docker stack down es 1. 集群解散 # 在每个节点执行 docker swarm leave --force 注意: 记得备份每个节点对应的标签 node1: tag1,tag2 node2:... 集群 阅读全文
posted @ 2023-04-19 15:16 JentZhang 阅读(186) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页