原创 Centos6.10下Open-falcon的分佈式安裝(虛擬機僞分佈式)和前端界面安裝

官方文檔地址,還在開發階段,文檔部分有點亂 https://book.open-falcon.org/zh_0_2/distributed_install/ 僞分佈式安裝,只有一臺虛擬機,重在學習每個組件 1 環境準備 1.1 配置epe

原创 Elasticsearch學習(零)——安裝與基本操作

官方文檔 https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html 全程在Centos6.10的虛擬機安裝 1

原创 Centos6下Redis學習(一)——Java客戶端Lettuce的使用、Springboot整合

幾年前我用的還是Jedis,貌似現在Lettuce更加流行了,而且Springboot現在集成的也是Lettuce 官方文檔https://lettuce.io/docs/getting-started.html 1 Lettuce 1.

原创 LeetCode困難刷題記錄——Median of Two Sorted Arrays 尋找兩個有序數組的中位數

問題: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays.

原创 Centos6.10下Open-falcon學習記錄(三)——log監控插件falcon-log-agent

這篇主要是記錄學習一個滴滴公司開發的日誌監控組件用於監控系統的日誌採集agent,可無縫對接open-falcon 1 安裝 go get安裝,肥腸簡單 go get github.com/didi/falcon-log-agent c

原创 Centos6.10下Open-falcon學習記錄(三)——plugin機制使用、無git方案

其實這篇是在Centos6.7下做的,不過沒感受到差距 官方文檔http://book.open-falcon.org/zh_0_2/philosophy/plugin.html plugin就是open-falcon上類似於zabbix

原创 open-falcon源碼閱讀(四)——transfer源碼閱讀(施工中)

本人水平:參加工作一年,剛看完一本《go實戰》的菜雞 代碼版本:2019年1月15日使用go get github.com/open-falcon/falcon-plus拉下來的代碼 1 概覽 1.1 目錄結構 g:全局共享信息的存放,

原创 LeetCode困難刷題記錄——Regular Expression Matching 正則表達式匹配

問題: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. 給你

原创 LeetCode困難刷題記錄——Transform to Chessboard 變爲棋盤

題目: An N x N board contains only 0s and 1s. In each move, you can swap any 2 rows with each other, or any 2 columns wit

原创 LeetCode困難刷題記錄——Max Points on a Line 直線上最多的點數

問題: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 給定一個二維平面,平面上有 n

原创 Centos6下Prometheus學習(一)——利用Elasticsearch Exporter監控Elasticsearch(施工中)

Elasticsearch集羣的搭建可以參考我這篇博文Elasticsearch學習(零)——安裝與基本操作 Prometheus官網上有Elasticsearch監控使用的exporterhttps://github.com/justw

原创 Centos6下Prometheus學習(零)——服務器搭建、簡單監控數據採集

官方文檔 https://prometheus.io/docs/prometheus/latest/getting_started/ 1 服務器搭建 1.1 安裝 下載解壓縮就可以,肥腸簡單 cd /path/to/your/work

原创 Centos6下Redis學習(二)——哨兵機制

官方文檔https://redis.io/topics/sentinel 1 概念 哨兵是Redis高可用的機制,有以下幾個用途 監控,持續監測主節點和從節點是否正常工作 通知,通過API通知系統管理者或應用程序Redis故障 故障轉移,

原创 Centos6下Redis學習(一)——Java客戶端Lettuce的使用

幾年前我用的還是Jedis,貌似現在Lettuce更加流行了,而且Springboot現在集成的也是Lettuce 官方文檔https://lettuce.io/docs/getting-started.html 1 Lettuce 1.

原创 Centos6下Redis學習(零)——集羣搭建

官方文檔https://redis.io/topics/cluster-tutorial 1 基本概念 1.1 hash slot Redis不使用一致性哈希算法,而使用一種稱爲哈希槽(hash slot)的方法,哈希值是用CRC16計算