摘要: K8S 的访问情况大致有分为3种 1、集群内部 1.1 DNS+ ClusterIP 1.2 Headless(HeadlessService) 2、集群内--> 集群外 2.1 IP+Port 2.2 OutService 3、集群外--> 集群内 3.1 NodePort # 有多少相同的端口都 阅读全文
posted @ 2021-02-20 10:56 王竹笙 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 官网地址:https://www.elastic.co/cn/ 官网权威指南:https://www.elastic.co/guide/cn/elasticsearch/guide/current/index.html 安装指南:https://www.elastic.co/guide/en/ela 阅读全文
posted @ 2019-04-30 16:14 王竹笙 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 一、什么是Selenium selenium 是一套完整的web应用程序测试系统,包含了测试的录制(selenium IDE),编写及运行(Selenium Remote Control)和测试的并行处理(Selenium Grid)。Selenium的核心Selenium Core基于JsUnit 阅读全文
posted @ 2018-10-16 16:19 王竹笙 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #串行执行 import time def consumer(res): '''任务1:接收数据,处理数据''' pass def producer(): '''任务2:生产数据''' res=[] for i in range(10000000): res.append(i) return res 阅读全文
posted @ 2024-01-15 11:05 王竹笙 阅读(3) 评论(0) 推荐(0) 编辑
摘要: from sqlalchemy import create_engine,Column,String,Integer from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionm 阅读全文
posted @ 2023-10-07 16:50 王竹笙 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 框架要兼容版本包范围,这极为重要很容易忽略的问题。无形的BUG会由此而生。 阅读全文
posted @ 2023-09-12 18:20 王竹笙 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ASGI 和 WSGI两种不同服务器类型 阅读全文
posted @ 2023-09-12 16:12 王竹笙 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Python的类型提示type hints Pydantic是一个基于Python 类型提示来定义数据验证,序列化和文档(使用JSON 模式)库 Starlette 是一种轻量级的ASGI 框架/工具包,是构建高性能Asyncio服务的理想选择 starlette 官网 阅读全文
posted @ 2023-09-12 16:02 王竹笙 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1. 配置数据库信息 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r .\req.txt req.txt pydantic-core==2.6.3 typing-extensions==4.7.1 python-multipar 阅读全文
posted @ 2023-09-06 18:38 王竹笙 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 1. 说明 1.1 SQLAlchemy 简单来说,SQLAlchemy 就是一个 ORM 工具,提供了灵活的数据模型定义和查询语法,支持多种数据库后端,比如: MySQL SQLite Oracle PostgreSQL Microsoft SQL Server,等等其它数据库 在 FastAPI 阅读全文
posted @ 2023-08-28 10:36 王竹笙 阅读(382) 评论(0) 推荐(0) 编辑
摘要: ASGI 和 WSGI两种不同服务器类型 阅读全文
posted @ 2023-08-24 18:09 王竹笙 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 订单 阅读全文
posted @ 2023-08-24 18:08 王竹笙 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 一、Prometheus 二、grafana 1、添加数据模板# blackbox_exporter监控数据 # 每个参数是不同的dashbord模板 https://grafana.com/grafana/dashboards/9965 https://grafana.com/grafana/da 阅读全文
posted @ 2023-08-14 10:49 王竹笙 阅读(8) 评论(0) 推荐(0) 编辑