原创 Kubernetes Basic

Create a Deployment 要在k8s上部署容器化應用,需要創建一個k8s配置文件。 使用kubectl API來創建部署,創建部署需要指明所使用地容器鏡像和創建數量。 通過 kubectl run 來創建一個部署:

原创 IBM Cloud Private (ICP):Installing

系統配置要求 集羣安裝準備 配置集羣 爲IBM Cloud Private設置Docker 手動安裝Docker 配置Docker Engine 使用bind mount掛載Docker默認存儲位置 給手動安裝Docker

原创 Kubernetes入門

簡介 是一個全新的基於容器技術的分佈式架構領先方案。是Google Borg的開源版本。Google Borg是谷歌內部使用的大規模集羣管理系統,它基於容器技術,實現資源管理自動化,以及跨多個數據中心的資源利用率的最大化 Kube

原创 Kubernetes Volume

Volume(存儲卷) Volume是在Pod中能夠被多個容器訪問的共享目錄。k8s中的Volume與Pod的生命週期相同,但是與容器的生命週期不同。 Volume的使用比較簡單,大多數情況下在Pod上聲明一個Volume,然後

原创 STL 常用數據結構總結

常用數據結構 對於面試的人來說, 基本上會用到的就下面幾種數據結構, 如果可以使用STL的話就使用下面幾種: stack, priority_queue, queue, vector, list, set, map, unordere

原创 Effective C++ (7): Templates and Generic Programming

Introduction 這一章主要介紹了模板編程, 最核心的思想就是儘可能地把運行期所做的事情移動至編譯期完成. 最後還簡要介紹了以下 TMP Rule 41: Understand implicit interfaces and co

原创 Effective C++ (8): Customizing new and delete

Introduction 本章主要討論了自定義 new 和 delete 的目的和需要注意的問題 Rule 49: Understand the behavior of the new-handler 在 new 拋出 bad_alloc

原创 Effective C++ (9): Miscellany

Introduction 雜項 Rule 53: Pay attention to compiler warnings Remeber: 嚴肅對待編譯器發出的警告信息. 不要過度依賴編譯器的警告信息, 因爲不同的編譯器對待事情態度並不相

原创 Effective C++ (5): Implementation

Introduction 本章討論了 變量聲明, 變量轉換(casting), 變量返回, 異常處理, inline, 解決編譯依賴等問題. 信息量較大也涉及到了設計模式的問題, 需仔細咀嚼. Rule 26: Postpone vari

原创 Effective C++ (4): Designs and Declaration

Introduction 這一章主要講述瞭如何去設計對象, 接口. Rule 18: Make Interfaces easy to use correctly and hard to use incorrectly 在設計接口的時候,

原创 Effective C++ (6): Inheritance and Oject-Oritent Design

Introduction 本章主要圍繞繼承展開討論. 如何確定是 public 繼承還是 private 或 protected 繼承, 繼承中virtual的確定等等. 信息量較大. Rule 32: Make sure public

原创 Effective C++ (2): Constructors, Destructors, and Assignment Operators

2. Constructors, Destructors, and Assignment Operators Introduction 如題, 書寫類的構造函數, 析構函數, 複製構造函數的時候需要遵守以下原則, 以防出錯. Rule 0

原创 Effective C++ (3): Resource Management

Introduction 這一章的核心是講了 RAII (Resource Acquisition Is Initialization) 的概念, 並且在書寫相關代碼的時候避免入坑. Rule 13: Use objects to man

原创 Effective C++ (1): Accustoming Yourself to C++

1. Accustoming Yourself to C++ Introduction 本章是最基礎的一點東西, 4條規則. Rule 01: View C++ as a federation of languages 將 c++ 視作一

原创 libuv源碼剖析(四): 高效線程池Threadpool

Introduction 在網絡編程中, 始終都是基於Reactor模型的變種, 無論怎麼演化, 核心組件都包括: Reactor實例(事件註冊, 註銷, 通知); 多路複用器(由操作系統提供, 比如kqueue, select, epo