原创 keepalive學習之軟件設計

軟件架構如下圖所示:   Keepalived 完全使用標準的ANSI/ISO C寫出. 該軟件主要圍繞一箇中央I/O複用分發器而設計,這個I/O複用分發器提供網絡實時功能. 主要設計目標着重於從所有的模塊抽取一個公共模塊,所有模塊衍生

原创 深入redis內部之redis啓動過程之二

接上文,繼續分析代碼 1. 設置線程安全模式 zmalloc_enable_thread_safeness();/*設置線程安全標識符爲1*/ void zmalloc_enable_thread_safeness(voi

原创 HAProxy advanced Redis health check---ref

http://blog.exceliance.fr/2014/01/02/haproxy-advanced-redis-health-check/ HAProxy advanced Redis health check Posted o

原创 讓你的spring-boot應用日誌隨心所欲--spring boot日誌深入分析

1.spring boot日誌概述 spring boot使用Commons Logging作爲內部的日誌系統,並且給Java Util Logging,Log4J2以及Logback都提供了默認的配置。如果使用了spring boot的S

原创 ping程序和tracert(traceroute)背後的故事--ICMP協議

爲路由器生,爲交換機死,爲了Ping通奮鬥一輩子-----tracert.cn上面是一個網絡工程師的個人定位,很有意思,哈哈!那麼我們來看看ping和tracert都是什麼吧 PING (Packet Internet Groper),因特

原创 你所忽略的DNS---DNS實戰及深度解讀

很多人沒有dns的概念,或者僅僅知道dns負責解析從域名到ip地址,這對普通人來說,也許是夠的,但對於開發者來說,就遠遠不夠了。 很多中高級開發者的眼中的DNS是這樣的(以百度爲例): 讀取hosts文件(位於C:\Windows\Sys

原创 訪問了一次百度網頁,你都經歷了什麼?https及tcp協議揭祕

打開https://www.baidu.com/ 網頁一個簡單的動作,都經歷了什麼?你想探究內部的原理嗎?那我們一起去探索吧 1.準備工作 安裝好wireshark。Wireshark(前稱Ethereal)是一個網絡報文分析軟件。網絡封包

原创 如何看linux是32位還是64位--轉

地址:http://hi.baidu.com/hehongrong/item/20c296bcf8d834432aebe3b2 如何看linux是32位還是64位 如何看linux是32位還是64位 查看linux是多少位的幾位方法

原创 Red–black tree ---reference wiki

source address:http://en.wikipedia.org/wiki/Red%E2%80%93black_tree A red–black tree is a type of self-balancing binary

原创 The Java serialization algorithm revealed---reference

Serialization is the process of saving an object's state to a sequence of bytes; deserialization is the process of rebu

原创 Linux getopt()函數 getopt_long()函數---轉

http://hi.baidu.com/scoundrelgg/item/d4083f8412eea05d26ebd97f Linux getopt()函數 getopt_long()函數 get_opt()函數: 函數原型:: #

原创 10 Linux DIG Command Examples for DNS Lookup--reference

by RAMESH NATARAJAN on FEBRUARY 29, 2012 http://www.thegeekstuff.com/2012/02/dig-command-examples/ Dig stands for domai

原创 學習中接觸的計算機概念

1. 事件模型。 從事件角度說,事件驅動程序的基本結構是由一個事件收集器、一個事件發送器和一個事件處理器組成。事件收集器專門負責收集所有事件,包括來自用戶的(如鼠標、鍵盤事件等)、來自硬件的(如時鐘事件等)和來自軟件的(如操作系統、應用程

原创 代碼規範

http://google-styleguide.googlecode.com/svn/trunk/javaguide.html http://www.oracle.com/technetwork/java/javase/document

原创 Radix tree--reference

source address:http://en.wikipedia.org/wiki/Radix_tree In computer science, a radix tree (also patricia trie or radix t