本文介绍了 MySQL MMM(主主复制管理器)实现高可用性(HA)和负载均衡(LB)的方法。关键内容包括 HA 和 LB 的定义及重要性,MySQL 的常用 HA 和 LB 方案,以及 MySQL MMM 的优缺点和安装配置过程。文档详细介绍了 MySQL MMM 的架构、运行机制和管理工具,提供了多种从安装到维护的指引。
This document provides an introduction to Kibana4 and how to use its features. It discusses the major components of Kibana4 including Discover, Visualize, and Dashboard. It also covers visualization types like metrics, buckets, and aggregations. The document provides examples of using aggregations versus facets and describes settings, scripted fields, and plugins. It concludes by discussing potential future directions for Kibana.
- The document discusses using the ELK stack (Elasticsearch, Logstash, Kibana) to perform real-time log search, analysis, and monitoring. It provides examples of using Logstash and Elasticsearch for parsing and indexing application logs, and using Kibana for visualization and analysis.
- The document identifies several performance and stability issues with Logstash and Elasticsearch including high CPU usage from grok filtering, GeoIP filtering performance, and Elasticsearch relocation and recovery times. It proposes solutions like custom filtering plugins, tuning Elasticsearch configuration, and optimizing mappings.
- Rsyslog is presented as an alternative to Logstash for log collection with better performance. Examples are given of using Rsyslog plugins and Rainerscript for efficient
This document discusses the author's experience with the ELK stack and Kibana. The author has been using ELK since 2012 and has published content on Logstash and written chapters about ELK in their book. The document then provides an overview of Kibana, describing its core components and features like dashboards, visualizations, and search functionality. It also outlines some custom panels the author created for Kibana through custom development, including range, percentile, and map panels. Lastly, it discusses the author's solution for adding authentication to Kibana.
This document describes how to build a Weibo bot that responds to mentions with information about Perl modules. It involves setting up a Weibo application, using OAuth to authorize the bot, monitoring the mentions API to find mentions, querying the CPAN API to find module information, and posting replies on Weibo comments. The bot works by searching for the #cpan# tag in mentions, looking up the module on CPAN, generating a short URL for the results, and replying with that information.
ElasticSearch is a flexible and powerful open source, distributed real-time search and analytics engine for the cloud. It is JSON-oriented, uses a RESTful API, and has a schema-free design. Logstash is a tool for collecting, parsing, and storing logs and events in ElasticSearch for later use and analysis. It has many input, filter, and output plugins to collect data from various sources, parse it, and send it to destinations like ElasticSearch. Kibana works with ElasticSearch to visualize and explore stored logs and data.
Logstash is a tool for managing logs that allows for input, filter, and output plugins to collect, parse, and deliver logs and log data. It works by treating logs as events that are passed through the input, filter, and output phases, with popular plugins including file, redis, grok, elasticsearch and more. The document also provides guidance on using Logstash in a clustered configuration with an agent and server model to optimize log collection, processing, and storage.
4. About Operation
? 现在:
– SRE(Google)
?Keep the site up
?Work at a Large Scale
?Balance competing demands
– PE(淘宝)
– DevOps(Facebook)
?Move Fast, Monitor Close
– SDN
41. monit
set httpd port 2812 and
use address localhost
allow localhost
set daemon 60
set alert 'noreply@admin.com'
check system localhost
if cpu usage (wait) > 5% for 2 cycles then alert
check process squid with pidfile '/var/run/squid.pid'
start program = '/etc/init.d/squid start'
stop program = '/etc/init.d/squid stop'
if totalmem > 8192 Mb then restart squid
check file cache_log with path /var/log/squid/cache.log
if match "COSS: /data/stripe: Rebuild Completed"
then exec "/usr/libexec/squid/online" every 10 cycles
57. natification_options
? r = Recovery(恢复)
? f = Flapping(抖动)
? s = Scheduled downtime(规划内停止和恢复)
? n = None(不发送)
? d = Down(host状态)
? u = Unreachable(host不可达)或Unknown(service未知)
? w = Warning(service警告)
? c = Critical(service危险)