这个博客用了很多年 Memcached。它一直很稳定,也没出过什么问题,但有件事始终绕不开:PHP 每读一次缓存,都要经过 localhost TCP。连接管理、协议编解码、数据往返,...
博客广场
Yac 2.4.0发布 - 小值读取性能提升64%
起因 前几天我把博客的对象缓存切到了我新写的 WordPress 插件 wordpress-yac-cache,替掉了用了十几年的 Memcached。压测结论:同样条件下吞吐提升 ~19%。 切完跑了几...
How To Install MariaDB on CentOS 7
Introduction MariaDB is an open-source database management system, commonly installed as part of the popular LEMP (Linux, Nginx, MySQL/MariaDB, PHP/Python/Pe...
Starting MySQL On Low Memory Virtual Machines
Cloud computing makes it very affordable to get your own private virtual server on the Internet. Digital Ocean offers an entry level droplet for USD$5 per mo...
Mysql cannot allocate memory for the buffer pool 解决方法
问题出现原因 昨晚我修改了数据库,为字段添加了”FULLTEXT”索引,结果今天早上发现数据库连不上了,也没法重启,于是查看日志文件: cat /var/log/mysqld.log 发现如下...
Spring Data JPA 手动释放当前数据库会话
公司一次项目事故,项目在正常测试时没有问题,在实际生产并发场景下发生了线程锁死的状况。 后来分析原因,项目中在数据库查询时使用了多线程的写法。项目使用Spring D...
Mysql Error:The user specified as a definer (‘mysql.infoschema’@’localhost’) does not exist’ when trying to dump tablespaces
我的MYSQL 使用Docker进行部署的,当我进行版本升级(MySQL 5.7 to MySQL 8.0)之后,尝试进行连接的时候就会报这个错误。 解决办法: (来源https://dev.mysql.com/doc...
在 Docker 中配置时区
FROM busybox MAINTAINER CaiZhongzhen RUN echo “Asia/Shanghai” > /etc/timezone RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN dpkg-reconfigu...
自定义 Docker-Compose创建的网络网段
某些时候,docker-compose创建的默认网络可能和你现有的内网网络有地址冲突,通过以下网上可以定制创建网络的网段来规避这个问题。 version : '3' services: nginx: ima...
使用Netcat在两台服务器之间传输文件
To send a directory, cd to inside the directory whose contents you want to send on the computer doing the sending and do: tar -cz . nc -q 10 -l -p 45454 On t...
NetCat的一些小技巧
功能超级强大的网络工具netcat A机器执行 nc -l 1234 B机器执行 nc a-ip 1234 AB之间就可以联通了, 可以当聊天工具用。 A机器执行 nc -l 1234 -e /bin/bash -k B机器执...
portainer的二次开发
一、准备环境 依赖:Docker, Node.js >= 0.8.4 和 npm [root@dev_08 ~]# curl --silent --location https://rpm.nodesource.com/setup_7.x sudo bash - [root@dev_08 ~]...
监控docker-swarm集群的方案swarmprom
just google swarmprom
Docker Swarm + CEPH 搭建过程
准备工作 硬件准备 我准备了3台虚拟化机器, 安装的是centos7系统(CentOS-7-x86_64-Everything-1708.iso)的最精简安装。 网络规划 服务器的 IP地址规划为: swarm1:10....
Ceph监控管理平台Calamari搭建
环境 已有: CentOS 7.3(基础设施服务器) Ceph 10.2.10(jewel) 后部署:Calamari 1.3.3 介绍 Calamari包含的组件主要有 calamari-server;romana;salt-minion;salt-...
ELK x-package watcher 正文JSON配置
x-package的监控还是很强大的,但是对于告警内容的二次过滤和开发能力较弱。某些情况下,我们可能需要将数据拿出来,和我们自己开发的数据处理平台对接,对数据进行清洗...
ELK x-package watcher webhook配置
我们在配置watcher的时候,有时候期望将事件触发给自己写的服务来进行进一步的处理,这时候就需要写一些webhook了。 这里写个配置的例子。 { "actions": { "test_webhoo...
Docker 容器里无法使用 JDK 的 jmap 等命令的问题
线上java程序出现异常,需要打印内存信息进行debug,发现没有 jmap,jstack等工具。 发现容器基础镜像选择的是FROM java:8-jre,jre环境是不包含这类工具的,遂将换成FR...
ZUUL modify request query param
对于url路由的服务来说,可以修改context的queryParam来达到修改请求参数的目的。 package com.efivestar.springcloud.gateway.filters.demo; import com.netflix.zuul....
ROS根据域名选择解析的DNS服务器
/ip firewall layer7-protocol add name=testdns regexp=xiaocaicai.com /ip firewall nat add action=dst-nat chain=dstnat disabled=no dst-port=53 layer7-protocol=...
