当前位置: 首页 > news >正文

给非法公司做网站维护百度权重批量查询

给非法公司做网站维护,百度权重批量查询,大学生个人网站制作,行业网站 源码1.问题背景 监控告警某套pg的两个备库延迟大于300s 2.pg备库延迟告警策略 通过postgres_exporter(version 0.13.2)监控生产pg,延迟告警策略如下: pg_replication_lag_seconds{instance!~"host_ip_18801"} > 300 and ON(instance) pg_re…

1.问题背景

监控告警某套pg的两个备库延迟大于300s

2.pg备库延迟告警策略

通过postgres_exporter(version 0.13.2)监控生产pg,延迟告警策略如下:

pg_replication_lag_seconds{instance!~"host_ip_18801"} > 300 and ON(instance) pg_replication_is_replica == 1

3.问题分析

1)查看备库上pg_replication_lag_seconds指标值(确实大于告警值300s)

curl http://127.0.0.1:19187/metrics|grep pg_replication_lag_seconds% Total    % Received % Xferd  Average Speed   Time    Time     Time  CurrentDload  Upload   Total   Spent    Left  Speed0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP pg_replication_lag_seconds Replication lag behind master in seconds
# TYPE pg_replication_lag_seconds gauge
pg_replication_lag_seconds 2059.643283
100 88926    0 88926    0     0  3503k      0 --:--:-- --:--:-- --:--:-- 3618k

2)查看主备库日志

pg主备库日志无任何异常

3)检查主库当前lsn及备库应用到的lsn

多次查看主库当前lsn不变,从库应用lsn无延迟,说明主库无数据写入

postgres=# SELECT * FROM pg_stat_replication \gx
-[ RECORD 1 ]----+------------------------------
pid              | 26226
usesysid         | 16384
usename          | repl
application_name | xxx.xx.xx.59_18801
client_addr      | xxx.xx.xx.59
client_hostname  | 
client_port      | 60049
backend_start    | 2023-08-04 09:39:42.059505+08
backend_xmin     | 
state            | streaming
sent_lsn         | 3633/F10891E8
write_lsn        | 3633/F10891E8
flush_lsn        | 3633/F10891E8
replay_lsn       | 3633/F10891E8
write_lag        | 
flush_lag        | 
replay_lag       | 
sync_priority    | 1
sync_state       | quorum
reply_time       | 2024-05-23 16:16:03.274172+08
-[ RECORD 2 ]----+------------------------------
pid              | 15343
usesysid         | 16384
usename          | repl
application_name | xxx_xx_xx_65_18801
client_addr      | xxx_xx_xx_65
client_hostname  | 
client_port      | 53700
backend_start    | 2023-08-05 04:30:26.862464+08
backend_xmin     | 
state            | streaming
sent_lsn         | 3633/F10891E8
write_lsn        | 3633/F10891E8
flush_lsn        | 3633/F10891E8
replay_lsn       | 3633/F10891E8
write_lag        | 
flush_lag        | 
replay_lag       | 
sync_priority    | 1
sync_state       | quorum
reply_time       | 2024-05-23 16:16:03.273835+08postgres=# 
postgres=# 
postgres=# select pg_current_wal_lsn();pg_current_wal_lsn 
--------------------3633/F10891E8
(1 row)

4.查看对应版本postgres_exporter源码中如何监控从库延迟

查看对应版本postgres_exporter源码中如何监控从库延迟

https://github.com/prometheus-community/postgres_exporter/commit/0b6d9860abb2340412a15be1fc2b4d25e154b8c3
 


 

5.问题解决

升级postgres_exporter到0.14或以上版本

http://www.ds6.com.cn/news/29960.html

相关文章:

  • 吉安网站建设百度人工客服电话怎么转人工
  • 网站开发助理品牌seo推广咨询
  • 网站名称是否已被注册网络营销策略方案
  • 厦门网站建设策划成人短期电脑培训班学费
  • 说明怎样做才能通过互联网访问你制作的网站爱站工具包的主要功能
  • 微网站不能分享朋友圈泉州关键词优化软件
  • 楼盘网站开发报价无锡网络公司
  • 宜宾网站建设怎么优化网站性能
  • 电子商务网站分类东莞seo整站优化
  • 中石化两学一做网站百度注册公司网站
  • 做兼职调查哪个网站好线下推广有哪些渠道
  • 万达做的电商网站百度指数分析案例
  • 一般通过什么渠道了解防灾减灾知识seo公司怎么推广宣传
  • 网站如何做滚动效果培训方案怎么做
  • 做网站无需备案网络营销的特点不包括
  • 网站是新媒体平台吗怎么做
  • 万维网使用的网站seo运营是什么意思
  • 扬中网站建设 优帮云推销广告
  • 点开图片跳到网站怎么做海口网站排名提升
  • 厦门网站设计个人百度站长工具平台登录
  • 做网站方法网站结构
  • 聊城网站建设公司电话最近国际时事热点事件
  • 霞山网站建设公司交换友链
  • 重庆建设部网站12月30日疫情最新消息
  • 上海网站建设公司地址公众号推广一个6元
  • 自己的电脑做网站服务器网络营销工具有哪些?
  • 河南做网站那家最好互联网广告优势
  • 制作网站需要学什么软件有哪些内容网站优化排名易下拉软件
  • 做国际网站花钱吗宝鸡seo优化公司
  • Wordpress嵌套其他网站知乎营销推广