Skip to content

Instantly share code, notes, and snippets.

View travishen's full-sized avatar
🎹
Play till the end.

ssivart travishen

🎹
Play till the end.
View GitHub Profile
@travishen
travishen / cyclic-iterator.ipynb
Created June 30, 2019 10:18
Cyclic iterator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@travishen
travishen / datastructure-python.md
Last active January 16, 2023 13:48
資料結構 Data Structure, ADT, Array, Linked List, Stack, Queue, BST, AVL, RBT, Heap, Associative Array/ Map/ Dictionary, Disjoint sets
@travishen
travishen / delegating-iterator-2.ipynb
Created July 11, 2019 15:27
Delegating Python Iterator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@travishen
travishen / dijkstra-pseudocode.pseudo
Last active October 5, 2022 05:10
Dijkstra Pseudo Code
class Node
name
min_distance
Node predecessor
function Dijkstra(Graph, source):
distance[source] = 0 // distance from source is 0 because it's the starting point
create queue Q
graph TD
  a[("snaphsot3(active)")] --> b[("snaphsot2(committed)")]
  b --> c[("snaphsot1(committed)")]
  c --> d[("snaphsot0(committed)")]
graph LR
    subgraph a[Clients]
        a1[kubectl]
        a2[docker]
        a3[ctr]
    end
    subgraph b[Container engine]
        b1[kubernetes]
 b2[dockerd]
指令 儲存 能否並行
docker build 基於 containerd 的原始 content,透過 Dockerfile 定義去操作 content layer by layer,無法並行建構
docker buildx build 基於 containerd 的 content 抽象層 snapshot,透過一個後端服務 (LLB) 來操作 snapshot,得益於 snapshot 的特性,可以拿來建構更複雜更有彈性的依賴結構 資料結構是 DAG,相同 parent 的 node 可以並行建構

BuildKit Survey

experiment 1

  1. Create a simple Dockerfile to build an apline image.
  2. Use build and buildx build to build the same Dockerfile.
  3. Examine the image layer.

Dockerfile

Example Postmortem

Shakespeare Sonnet++ Postmortem (incident #465)

Date: 2015-10-21

Authors: jennifer, martym, agoogler

Example Incident State Document

Shakespeare Sonnet++ Overload: 2015-10-21
Incident management info: https://incident-management-cheat-sheet

(Communications lead to keep summary updated.)
Summary: Shakespeare search service in cascading failure due to newly discovered sonnet not in search index.

Status: active, incident #465