<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by kakashi on Medium]]></title>
        <description><![CDATA[Stories by kakashi on Medium]]></description>
        <link>https://medium.com/@kakashiliu?source=rss-a5031bf03131------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CWxZ_9WYa2I66PaS.jpg</url>
            <title>Stories by kakashi on Medium</title>
            <link>https://medium.com/@kakashiliu?source=rss-a5031bf03131------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:18:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kakashiliu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploy Prometheus Operator With Thanos]]></title>
            <link>https://medium.com/@kakashiliu/deploy-prometheus-operator-with-thanos-60210eff172b?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/60210eff172b</guid>
            <category><![CDATA[thanos]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Wed, 13 Feb 2019 01:57:03 GMT</pubDate>
            <atom:updated>2019-02-13T01:57:03.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>Preface</h3><p>Prometheus is widely adopted as a standard monitoring tool with Kubernetes because it provides many useful features such as dynamic service discovery, powerful queries, and seamless alert notification integration. There are many applications and client libraries support Prometheus which makes the operation’s life easier. Although things are going pretty well with Prometheus, the original Prometheus deployment is not able to easily achieve High Availablity and long term storage.</p><h3>Thanos comes to the rescue</h3><p>Thanos is developed by <a href="https://github.com/improbable-eng">improbable</a> which can be integrated with Prometheus transparently and solve HA and long term storage issues without hurting performance. The idea of Thanos is to run a sidecar component of Prometheus, therefore meaning that sidecar components can interact with Prometheus to upload or query metrics. Also, Prometheus operator supports Thanos natively which make us easier to deploy our Prometheus cluster along with Thanos. This solution seems pretty elegant when you choose the prometheus operator to provision Prometheus cluster.</p><p>This article includes the following contents</p><ul><li>How to deploy the Prometheus operator on the kubernetes</li><li>How to deploy the Thanos sidecar w/ Prometheus.</li><li>Achieve HA: using Thanos querier</li><li>Query historical data: Thanos store</li><li>Reduce data size: Thanos compactor</li></ul><h3>Install Prometheus through Prometheus operator</h3><p>There are tons of article introducing why we need to adopt Prometheus-operator to provision Prometheus. I recommend you read the following references[2] if you are not familiar with Prometheus-operator.</p><h3>1. Install Helm in your environment</h3><ul><li>MacOS: brew install kubernetes-helm</li><li>Linux: sudo snap install helm</li></ul><h3>2. Initialize helm and install tiller</h3><pre>$ helm init</pre><h3>3. Install coreos prometheus operator</h3><p>Note that we are using stable/prometheus-operator because coreos/prometheus-operator helm is going to be deprecated. We later need to modify chart value to provision Prometheus cluster along with Thanos sidecar. To install a stable helm chart with custom value, you need to download values.yaml from <a href="https://github.com/helm/charts/blob/master/stable/prometheus-operator/values.yaml">GitHub repo</a>.</p><p>In this example, we named our Prometheus operator as prom-op and install it under monitoring namespace.</p><pre>$ helm upgrade --install prom-op stable/prometheus-operator --namespace monitoring -f values.yaml</pre><p>Use the following command to verify if Prometheus-operator is provisioning successfully.</p><pre>kubectl --namespace monitoring get pods -l &quot;release=prom-op&quot;</pre><h3>Thanos Deployment</h3><p>**NEED TO KNOW ** Prometheus-operator should be greater than 0.28.0 to support Thanos 2.0</p><h3>Thanos Architecture</h3><p>Official Architecture of Thanos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*PekYhTv_VNhiURqk.jpg" /></figure><p>Our deployment steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/0*DW95uxXWkRnKM1Ji.jpg" /></figure><p>According to the above picture, there are several components of Thanos:</p><ul><li>Sidecar</li><li>Querier</li><li>Store</li><li>Compactor</li></ul><p>The deployment steps:</p><ol><li>Prometheus should be deployed with Thanos Sidecar.</li><li>Deploy Thanos Querier which is able to talks to Prometheus Sidecarthrough a gossip protocol.</li><li>Make sure Thanos Sidecar is able to upload Prometheus metrics to the given S3 bucket.</li><li>Establish the Thanos Store for retrieving long term storage.</li><li>Set up the Compactor to shrink historical data.</li></ol><h3>Install Thanos sidecar</h3><p>To install Thanos sidecar along with Prometheus-operator, we should specify Thanos sidecar in the chart value as following:</p><pre>thanos:<br>    baseImage: improbable/thanos<br>    version: v0.2.1<br>    peers: thanos-peers.monitoring.svc:10900<br>    objectStorageConfig:<br>      key: thanos.yaml<br>      name: thanos-objstore-config</pre><p>objectStorageConfig can be configured through the configuration file thanos.yaml</p><pre>type: s3<br>config:<br>  bucket: test-prometheus-thanos<br>  endpoint: s3.us-west-2.amazonaws.com<br>  encryptsse: true</pre><p>Creating the kubernetes secret by applying the following command</p><pre>kubectl -n monitoring create secret generic thanos-objstore-config --from-file=thanos.yaml=/tmp/thanos-config.yaml</pre><p><strong>Warn</strong>: endpoint needs to be set in order to specify the bucket located in which region.</p><h3>Verify Thanos Sidecar</h3><pre>$ kubectl get po -n monitoring</pre><pre>$ kubectl describe po/prometheus-prom-op-prometheus-0 -n monitoring</pre><p>If everything goes well, we could find out there is Thanos-sidecar in the Prometheus pod</p><pre>thanos-sidecar:<br>    Container ID:  docker://e52df9fda7b0c43eea297d273169cf33e4aa49780fd8d5192c23f497c78b2007<br>    Image:         improbable/thanos:v0.2.1<br>    Image ID:      docker-pullable://improbable/thanos@sha256:4ee0774316a5d57f78d243fe4afb10e9e889670d3facfdda70aae76f7165a16b<br>    Ports:         10902/TCP, 10901/TCP, 10900/TCP<br>    Host Ports:    0/TCP, 0/TCP, 0/TCP<br>    Args:<br>      sidecar<br>      --prometheus.url=http://127.0.0.1:9090<br>      --tsdb.path=/prometheus<br>      --cluster.address=[$(POD_IP)]:10900<br>      --grpc-address=[$(POD_IP)]:10901<br>      --cluster.peers=thanos-peers.monitoring.svc.cluster.local:10900<br>    State:          Running<br>      Started:      Fri, 01 Feb 2019 12:24:38 +0800<br>    Ready:          True<br>    Restart Count:  0<br>    Environment:<br>      POD_IP:   (v1:status.podIP)<br>    Mounts:<br>      /prometheus from prometheus-prom-op-prometheus-db (rw)<br>      /var/run/secrets/kubernetes.io/serviceaccount from prom-op-prometheus-token-7gvcp (ro)</pre><p>and if you check the log of the sidecar, you will see the following messages.</p><pre>$ kubectl log -f  po/prometheus-prom-op-prometheus-0 -n monitoring -c thanos-sidecar</pre><pre>level=info ts=2019-02-01T09:33:15.173007261Z caller=flags.go:90 msg=&quot;StoreAPI address that will be propagated through gossip&quot; address=10.11.29.191:10901<br>level=info ts=2019-02-01T09:33:20.178094001Z caller=main.go:256 component=sidecar msg=&quot;disabled TLS, key and cert must be set to enable&quot;<br>level=info ts=2019-02-01T09:33:20.178211091Z caller=factory.go:39 msg=&quot;loading bucket configuration&quot;<br>level=info ts=2019-02-01T09:33:20.17855779Z caller=sidecar.go:280 msg=&quot;starting sidecar&quot; peer=<br>level=info ts=2019-02-01T09:33:20.179145313Z caller=sidecar.go:220 component=sidecar msg=&quot;Listening for StoreAPI gRPC&quot; address=[10.11.29.191]:10901<br>level=info ts=2019-02-01T09:33:20.179187469Z caller=main.go:308 msg=&quot;Listening for metrics&quot; address=0.0.0.0:10902<br>level=info ts=2019-02-01T12:33:50.282222532Z caller=shipper.go:201 msg=&quot;upload new block&quot; id=01D2MGSADK1860F4APSD7CFZ7C</pre><h3>Install Thanos Querier</h3><p>Thanos Querier Layer provides the ability to retrieve metrics from all prometheus instances at once. It’s fully compatible with original prometheus PromQL and HTTP APIs so that it can be used along with Grafana.</p><p>Since there are too many yaml files, I put everything in my <a href="https://github.com/kkc/prometheus-thanos">github repo</a></p><pre>$ cd thanos<br>$ kubectl apply -f querier-deployment.yaml<br>$ kubectl apply -f querier-service.yaml<br>$ kubectl apply -f querier-service-monitor.yaml<br>$ kubectl apply -f thanos-peers-svc.yaml</pre><h3>Install Thanos Store</h3><p>Thanos Store collaborates with querier for retrieving historical data from the given bucket. It will join the Thanos cluster on setup.</p><pre>$ kubectl apply -f thanos-store.yaml</pre><h3>Install Thanos Compactor</h3><p>Thanos Compactor will do downsampling for your all historical data. It’s a really useful component which can reduce file size. Recommend everyone read this well-explained <a href="https://improbable.io/games/blog/thanos-prometheus-at-scale">article</a>.</p><pre>$ kubectl apply -f thanos-compactor.yaml<br>$ kubectl apply -f thanos-compactor-service.yaml<br>$ kubectl apply -f thanos-compactor-service-monitor.yaml</pre><h3>Troubleshooting</h3><h3>Peering service didn’t set up properly</h3><p>you will see this kind of message of Thanos component, which means you didn’t set up the peer service properly.</p><pre>level=error ts=2019-02-01T05:11:40.805153721Z caller=cluster.go:269 component=cluster msg=&quot;Refreshing memberlist&quot; err=&quot;join peers thanos-peers.monitoring.svc.cluster.local:10900 : 1 error occurred:\n\t* Failed to resolve thanos-peers.monitoring.svc.cluster.local:10900: lookup thanos-peers.monitoring.svc.cluster.local on 172.20.0.10:53: no such host\n\n&quot;</pre><pre>$ kubectl apply -f thanos-peers-svc.yaml</pre><h3>References</h3><ol><li><a href="https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md">https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md</a></li><li><a href="https://sysdig.com/blog/kubernetes-monitoring-prometheus-operator-part3/">https://sysdig.com/blog/kubernetes-monitoring-prometheus-operator-part3/</a></li><li><a href="https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/alerting.md">https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/alerting.md</a></li><li><a href="https://fosdem.org/2019/schedule/event/thanos_transforming_prometheus_to_a_global_scale_in_a_seven_simple_steps/attachments/slides/3178/export/events/attachments/thanos_transforming_prometheus_to_a_global_scale_in_a_seven_simple_steps/slides/3178/Thanos___Transforming_Prometheus_to_a_Global_Scale_in_a_Seven_Simple_Steps_(FOSDEM).pdf">Thanos___Transforming_Prometheus_to_a_Global_Scale_in_a_Seven_Simple_Steps_(FOSDEM).pdf</a></li></ol><p>The original blog post is <a href="https://kkc.github.io/2019/02/10/prometheus-operator-with-thanos/">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60210eff172b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[April week 1]]></title>
            <link>https://medium.com/@kakashiliu/april-week-1-b712c66699c5?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/b712c66699c5</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Tue, 04 Apr 2017 15:40:39 GMT</pubDate>
            <atom:updated>2017-04-04T15:40:39.608Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Watt Disney 的創業故事也好艱辛啊，果然每個年代創業都有其難處，不過現在其實比較餓不死。</li><li>掃墓的過程中發現，用嘴巴掃還是比動手做快</li><li>有些人很會催眠自己是貢獻最多最累，而且大家都欺負他的人，卻沒有看到別人的付出。</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b712c66699c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[消分頁 for 2016/1]]></title>
            <link>https://medium.com/@kakashiliu/%E6%B6%88%E5%88%86%E9%A0%81-for-2016-1-927baa29f978?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/927baa29f978</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Sat, 18 Mar 2017 04:38:47 GMT</pubDate>
            <atom:updated>2017-03-18T04:38:47.390Z</atom:updated>
            <content:encoded><![CDATA[<p>都 2017 年了還在消 2016 年的 tab…hmmm</p><ol><li><a href="https://medium.com/@wob/the-sad-state-of-web-development-1603a861d29f#.7v3h02ix0">The Sad State of Web Development</a> This article is talking about how frustrated that frond-end developer feel, cause too many tools and frameworks in the javascript world are over engineered. Don’t know if the situation is the same in 2017…</li><li><a href="http://www.wklken.me/posts/2015/09/29/python-source-gc.html">Python GC mechanism</a></li><li><a href="http://ericliang.info/what-kind-of-id-generator-we-need-in-business-systems/">What kind of ID generator you need</a></li><li><a href="http://insights.thoughtworkers.org/microservices-docker-organization-transfermation/">你以为是微服务或Docker？其实是组织架构！</a></li><li><a href="http://elekslabs.com/2013/11/aws-10-things-youre-probably-doing.html">http://elekslabs.com/2013/11/aws-10-things-youre-probably-doing.html</a><br>- The golden rule of designing highly available and fault tolerant systems in the cloud is: do not assume fixed location, health or availability of individual components.</li><li><a href="https://aws.amazon.com/tw/blogs/security/adhere-to-iam-best-practices-in-2016/">AWS IAM best practices</a></li><li><a href="http://cloudacademy.com/blog/author/stuart/">AWS security related topic</a></li><li><a href="https://recipe.kc-cloud.jp/archives/9705">利用 auditd 監控 EC2 上面的操作</a></li><li><a href="https://algorithm.yuanbin.me/zh-hans/dynamic_programming/maximum_subarray.html">maximum subarray</a></li><li><a href="http://ocw.aca.ntu.edu.tw/ntu-ocw/index.php/ocw/cou/102S207/5/V/2">台大線性代數</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=927baa29f978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[228 京都行]]></title>
            <link>https://medium.com/@kakashiliu/228-%E4%BA%AC%E9%83%BD%E8%A1%8C-3b4afee6d4e9?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b4afee6d4e9</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Fri, 17 Mar 2017 22:21:12 GMT</pubDate>
            <atom:updated>2017-03-17T22:21:12.414Z</atom:updated>
            <content:encoded><![CDATA[<p>時間不多先用流水帳的方式紀錄</p><ol><li>成功帶爸媽去日本玩，覺得完成人生的壯舉，雖然對很多人來說可能沒什麼，但是能夠有能力帶爸媽出去玩，真的是我從小就想到大的目標之一。</li><li>老爸好愛京都的古樹，也讓我這次的京都行有了不一樣的觀點。</li><li>媽媽好會吃，讓我吃了好多我不曾吃過的京都食物。</li><li>媽媽鬧了好多笑話，讓我笑到美丁美噹。</li><li>爸爸其實還是很厲害，也是很會看地圖的。</li><li>老婆很辛苦又要安排行程，又要查地圖帶路。</li><li>還好爸爸有睡著，我真的是擔心得要命。</li><li>這趟京都行真的讓我學到不少東西，感覺好像自己也有照顧爸媽的能力了。</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b4afee6d4e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[消分頁 03/12]]></title>
            <link>https://medium.com/@kakashiliu/%E6%B6%88%E5%88%86%E9%A0%81-03-12-30f3c38a270a?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/30f3c38a270a</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Sat, 11 Mar 2017 18:26:33 GMT</pubDate>
            <atom:updated>2017-03-17T22:19:28.912Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>什麼造就了好的軟體文化: <a href="http://xingulin.logdown.com/posts/2014/05/04/what-makes-good-engineering-culture-1">http://xingulin.logdown.com/posts/2014/05/04/what-makes-good-engineering-culture-1</a></li><li>docker volume 講解 <a href="http://dockone.io/article/128">http://dockone.io/article/128</a></li><li>gettimeofday-not-using-vdso，好像沒有好好了解這個system call <a href="https://stackoverflow.com/questions/42622427/gettimeofday-not-using-vdso">https://stackoverflow.com/questions/42622427/gettimeofday-not-using-vdso</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30f3c38a270a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[記錄下 ConnectionError: (‘Connection aborted.’, BadStatusLine(“”’’’’”))]]></title>
            <link>https://medium.com/@kakashiliu/%E8%A8%98%E9%8C%84%E4%B8%8B-connectionerror-connection-aborted-badstatusline-48c87f1ac826?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/48c87f1ac826</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Fri, 17 Feb 2017 15:33:15 GMT</pubDate>
            <atom:updated>2017-02-18T01:15:24.913Z</atom:updated>
            <content:encoded><![CDATA[<p>記錄一下這個踩到的雷，利用 python 最知名的 requests.session 想要建立 keep-alived 連線時發生的，某一段 client side 的 request 被設定成每 60s 去問 server，然後 server 也是設定 60s 時自動踢掉 keep-alived 的連線，就造成了 race condition 啦!!! 明明 server 踢掉了 client，但是 client 當下還以為自己活著就嘗試發出訊息，當然就拿到了這個錯誤訊息。</p><p><a href="https://bugs.python.org/issue23054">https://bugs.python.org/issue2305</a><br>有提議要修改錯誤訊息變成 RemoteDisconnected</p><p><a href="https://github.com/kennethreitz/requests/issues/2364">https://github.com/kennethreitz/requests/issues/2364</a><br>這篇有講解主因</p><p><a href="https://github.com/ceph/teuthology/pull/659/files">Use safe_while to work around an OVH problem by zmc · Pull Request #659 · ceph/teuthology · GitHub</a></p><p>一些 workaround，主要就是 retry 哩</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48c87f1ac826" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[日記 1/14]]></title>
            <link>https://medium.com/@kakashiliu/%E6%97%A5%E8%A8%98-1-14-24d570f99c3b?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/24d570f99c3b</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Fri, 13 Jan 2017 16:33:08 GMT</pubDate>
            <atom:updated>2017-01-13T16:33:08.347Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>人生第一次照胃鏡，還好是無痛胃鏡，說到一開始決定要照，我還覺得自己很勇敢，居然看診完後馬上就預約了，但約完後立馬就開始擔心，會不會很痛，會不會打完麻醉醒不來，會不會醒來轉送到大醫院，會不會照出什麼怪怪的東西來，諸如此類的小幻想一直在腦海中浮現。還好無痛胃鏡真的是個很偉大的發明，好讚賞現代醫學的麻醉技術啊，護士小姐請我躺好，給我打了點滴後，我心想根本不想睡啊，還頻頻張開眼睛看醫生來了嗎，突然就被拍肩跟我說已經照完了，What !!! 醫生捏，我根本沒看到醫生啊，就被請出去了，過程也不到 20 分鐘，真是讓我太驚豔了，真心推薦大家都去照胃鏡啊（被踢飛。</li><li>晚上的 Sprint review 真的頗有趣的，終於知道整個系統的 bottleneck 出在哪，我們把制定 spec 和 design review 跟 implementation 放在同個 sprint 就是個很大的錯誤，一旦 spec or design 有很大的異動，整個 implementation 就根本不可能在這個 sprint 做完，完全變成了 WIP ，而我還是覺得整個 Agile 的精神就在消除 WIP，希望在接下來的 sprint 中，大家能夠越 run 越順。</li><li>老爸講了一下妹妹的狀態，這小朋友真的需要我很多的時間照料，希望她能夠趕快找回自制力。</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24d570f99c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[日記 2017/1/5]]></title>
            <link>https://medium.com/@kakashiliu/%E6%97%A5%E8%A8%98-1-5-85163a119423?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/85163a119423</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Thu, 05 Jan 2017 14:56:31 GMT</pubDate>
            <atom:updated>2017-01-05T15:09:26.801Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>今天起了個大早，跟室友一同去碧湖公園跑步，陽光照映下湖光潾潾，如果每天早上都能來這呼吸新鮮空氣，心境也會更開闊吧！跑完步後接著去附近的 WooWho 吃早餐，之前沒來過轉角的這間小店，烤過的黑色麵包夾上德國香腸，口感著實不錯。整體來說，價位其實算合理，不過出餐有點慢，有點懷疑這種販賣速度能跟得上成本嗎，不過有機會應該還會當回頭客。</li><li>早上上了一個 feature，不過還沒到中午馬上就 rollback ，果然部署這些老闆很著急的 feature， 在沒有 testing 的狀態下，真的是驚險萬分，不管怎樣還是要在 staging 上，工人蠢蠢的點點看，才不會一直產生悲劇，而事後也要趕快補上 testing，才不會慘劇重演。</li><li>下午在修 github history line，大家一直在兩條重要的 branch 上面 merge 來 merge 去，結果就是產生一堆不需要的節點，還有怪異的 commit point ，類似在 dev 上面看到 merge branch “dev”，還真的讓我很難受，雖然是個天性崇尚自由的射手座，遇到這種情況還是不能容忍啊，這邊要強烈推薦 git rebase，真是 git 世界中一定要熟悉的好物！</li><li>晚上去復健，腳還是一樣緊啊，不知道這些怪病有沒有離開我的一天，還是要好好加油，多睡多吃～～</li><li>昨天太早躺平，忘了記錄下昨天小聚得到的重要心得。系統設計有分兩種，一種是低 latency 講求即時性的，另外一種是想要 batch 處理提升 thoughput 的，而通常講究即時性的系統，我們一般不會讓 service 的忙碌程度太高，以為了應付 request 量的變動，而在 request 量開始提升時，採用 auto scaling 的技術，讓 service 開始增長以符合快速回應的需求，而講究 thoughput 的系統，通常會有一個 buffer 來調節，讓 service 的 resource utilization 達到最高，這樣下來能夠處理的 request 量一直都會是固定的，適合不需要單筆資料要快速回應的場景。</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85163a119423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[日記 2017/1/3]]></title>
            <link>https://medium.com/@kakashiliu/%E6%97%A5%E8%A8%98-2017-1-3-d42f0c49855c?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/d42f0c49855c</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Tue, 03 Jan 2017 13:36:02 GMT</pubDate>
            <atom:updated>2017-01-03T13:36:02.043Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>凌晨兩點就酒醒了，真是不知道為什麼，導致今天很晚起床啊 (抱頭</li><li>Eventually, coworker deploy the new code on the production. It’s been a few weeks we haven’t deliver new features. I am truly glad we can let this version go online today. I hope we could make next deployment process more easier and deliver it sooner.</li><li>Had a long meeting talking about what should we do in the next 2 months. This list was decided by all of engineers. We tried to add story points on it and evaluated how much time we have to achieve it. Then we discussed those features and convinced boss that is pretty much what we can afford. It’s obvious to me next few weeks days could be very tough.</li><li>Azure account is not yet ready. It’s annoying that big companies have so many holidays and the efficiency is quite low.</li><li>晚上最大的新聞就是和沛裁員了，其實也不要下太多註解，創業真的很不容易，尤其檯面上那麼多糟糕的公司，也許前幾天跟推友的玩笑話成真了，不是台灣都是慣老闆，而是好老闆早就倒光了，缺乏誠信的人很多都能騙得到錢和人，希望翟神能夠挨過去。</li><li>After opening task tickets, I would like to read a novel called The Signature of All Things.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d42f0c49855c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[日記 2017/1/2]]></title>
            <link>https://medium.com/@kakashiliu/%E6%97%A5%E8%A8%98-2017-1-2-a57fc6fd0cab?source=rss-a5031bf03131------2</link>
            <guid isPermaLink="false">https://medium.com/p/a57fc6fd0cab</guid>
            <dc:creator><![CDATA[kakashi]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 18:48:36 GMT</pubDate>
            <atom:updated>2017-01-02T18:48:36.694Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>一早在尋覓附近的早餐店，原本想去吃在山野唱歌，最後還是轉頭跑去甲上燒餅，燒餅味道的算不錯，不過肉是用廉價的肉片，我其實不該要求在這個價位上提供高等肉片，但總覺得還可以更好，雖然整體的品質有被拉低，但 CP 值還是算不錯的。</li><li>和爸媽在忠孝新生的 pizza hut 會面，來處理妹妹的事情，一個自我放逐的人生，抽煙喝酒上夜店卻始終找不到自己方向，挖了坑給自己跳，給她的錢全部花在不該花的東西上面，房租都沒繳到房東打電話來催。房間真的太噁太噁，很難想像曾經乖巧的她居然可以墮落到這種程度，其實可以想像她所謂最好的朋友是多糟糕的人，不過很好的是她連朋友都欺騙，最後這位帶壞她的高人也離開了。</li><li>教訓了一整天，不知道這位需要人鞭策的人有沒有聽懂，看來還需要每天去盯他，20歲了但其實內心根本就還是小朋友，受傷害最大的就是我爸媽，其實我見到他真的想揍死他，但是又忍不下心，親情真的是很可惡的牽絆，我要多負點責任，看事情最後是否有轉機。</li><li>跑去齊東詩社那區逛逛，結果什麼都沒開，一如往常的我常常吃閉門羹啊。</li><li>紅酒配 Cheese 好吃，但是其實我不喜歡 Cheese 啊…</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a57fc6fd0cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>