摘要:
from kazoo.client import KazooClient # https://www.cnblogs.com/sanduzxcvbnm/p/11579380.html zk = KazooClient(hosts='192.168.128.130:2181', timeout=10) 阅读全文
摘要:
https://www.cnblogs.com/BlueSkyyj/p/8143826.html 阅读全文
摘要:
dev tools: GET /mysql-cdb_session*/_search { "aggs": { "results": { "terms": { "field": "instanceid.keyword", "size": 500, "order": { "sum_query_time_ 阅读全文
摘要:
主要是在Python的function中写了执行SQL的语句,SQL条件中需要类似'%_aa'中%的匹配符号,Python认为%是求模运算或者格式化字符,而是实际我们在SQL中需要%,此时需在SQL使用%%表示。 python3 pymysql 'latin-1' codec can't encod 阅读全文
摘要:
使用python3抓取pinpoint应用信息入库 Pinpoint是用Java编写的大型分布式系统的APM(应用程序性能管理)工具。 受Dapper的启发,Pinpoint提供了一种解决方案,通过在分布式应用程序中跟踪事务来帮助分析系统的整体结构以及它们中的组件之间的相互关系. pinpoint 阅读全文
摘要:
await 用于等待一个 Promise对象,它只能在一个 async函数中使用 https://www.cnblogs.com/rogerwu/p/10784236.html https://www.cnblogs.com/CandyManPing/p/9384104.html 阅读全文
摘要:
JS判断对象是否为空 https://www.cnblogs.com/mountain-mist/articles/1600995.html http://www.cftea.com/c/2007/04/YK4PY29JW82CZOVY.asp JS如何判断一个数组是否为空、是否含有某个值? 下面的方法不能判断对象是否为 0、null、undefined 1.js判断数组是否... 阅读全文
摘要:
Vue——父子组件间异步动态获取数据传递数据时,子组件获取不到值或者延时获取: 通过watch解决:https://blog.csdn.net/where_slr/article/details/99552087 Vue中数据的异步加载:1.通过watch、computed 2.在组件生命周期中的c 阅读全文
摘要:
import pymysql import logging logger = logging.getLogger('app') class MysqlBase: def __init__(self, **args): self.host = args.get('host') self.user = 阅读全文