10 2021 档案
postgresql参数优化配置
摘要:1、官网连接 https://patroni.readthedocs.io/en/latest/dynamic_configuration.html 2、必须更改 DCS 中的共享配置,本地配置修改不生效(在一个节点执行即可) [postgres@] patronictl -c /usr/patro 阅读全文
posted @ 2021-10-13 15:31 !!雪莲花!! 阅读(521) 评论(0) 推荐(0)
postgresql数据库备份与恢复
摘要:1、注意事项 1、备份及恢复脚本是对应的,且恢复脚本只能回复当前的数据 2、备份文件传输及备份的过程中不要修改文件目录,否则导致恢复失败 2、数据备份 [postgres@pgsql_1971 ~]$ cat backup.sh #!/bin/bash DUMP=/data/pgsql/bin/ D 阅读全文
posted @ 2021-10-13 15:20 !!雪莲花!! 阅读(388) 评论(0) 推荐(0)
问题: Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-user-2021.10.13", :routing=>nil}, {"tags"=>["_grokparsefailure_sysloginput"]
摘要:解决:(永久性解决) elasticsearch7版本以上的,默认只允许1000个分片,因为集群分片数不足引起的 curl --user elc:password -XPUT -H "Content-Type:application/json" -d '{"transient":{"cluster" 阅读全文
posted @ 2021-10-13 10:13 !!雪莲花!! 阅读(2050) 评论(0) 推荐(0)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eqa5nwad/psycopg2-binary/
摘要:更新pip服务即可 pip3 install --upgrade pip 阅读全文
posted @ 2021-10-12 16:13 !!雪莲花!! 阅读(108) 评论(0) 推荐(0)
Centos7系统-postgresql+etcd+patroni+haproxy+keepalived高可用集群部署
摘要:一、概况 1、概念 pgsql高可用集群采用postgresql+etcd+patroni+haproxy+keepalived等软件实现,以postgresql做数据库,etcd存储集群状态,patroni与etcd结合实现数据库集群故障切换,haproxy实现数据库高可用(读读写分离),keep 阅读全文
posted @ 2021-10-12 15:26 !!雪莲花!! 阅读(1756) 评论(0) 推荐(0)