---
title: "Calvin Leung (@calvinleung) | Hashnode"
description: "Sharing experience of real-world cloud operations. Read the latest articles by Calvin Leung on Hashnode."
url: "https://hashnode.com/@calvinleung"
---

@calvinleung

# Calvin Leung

@calvinleung · Singapore · Joined September 2026

Sharing experience of real-world cloud operations

### [How to shrink Byteplus EBS system volume](https://calvinleung.hashnode.dev/how-to-shrink-byteplus-ebs-system-volume?utm_source=hashnode&utm_medium=feed)

As almost every cloud engineer knows, cloud instance EBS storage volume is only easily expandable, but not allowed to shrink, but still, there are actually some way to achieve this, if you think the p

7 min read · [calvinleung.hashnode.dev](https://calvinleung.hashnode.dev/how-to-shrink-byteplus-ebs-system-volume?utm_source=hashnode&utm_medium=feed)

[Oct 28](https://hashnode.com/posts/how-to-shrink-byteplus-ebs-system-volume/6ae1c60640534d6e0ab8d340)

### [Sharing Byteplus CDN Purging Script](https://calvinleung.hashnode.dev/sharing-byteplus-cdn-purging-script?utm_source=hashnode&utm_medium=feed)

The reason We are coorperating with Byteplus CDN recently and using it to serve an react website, which using bamboo to deploy. Afate bamboo agent copy the new react build to Byteplus TOS storage, wil

2 min read · [calvinleung.hashnode.dev](https://calvinleung.hashnode.dev/sharing-byteplus-cdn-purging-script?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/sharing-byteplus-cdn-purging-script/6ad0a46ff19d4f2e5892a542) [Oct 15](https://hashnode.com/posts/sharing-byteplus-cdn-purging-script/6ad0a46ff19d4f2e5892a542)

### [MongoDB Failed to Start Due to \`/tmp\` Permissions](https://calvinleung.hashnode.dev/mongodb-failed-to-start-due-to-tmp-permissions?utm_source=hashnode&utm_medium=feed)

Tags: MongoDB Linux DevOps Troubleshooting An afternoon, dev contacted me to help convert a standalone mongodb to a single-node replica set, because they want to do excel bulk import and want to have

3 min read · [calvinleung.hashnode.dev](https://calvinleung.hashnode.dev/mongodb-failed-to-start-due-to-tmp-permissions?utm_source=hashnode&utm_medium=feed)

[Oct 14](https://hashnode.com/posts/mongodb-failed-to-start-due-to-tmp-permissions/6acf2abd4cac15948a540cff)

### [Using LUKS2 for Encrypted Application Storage on Linux](https://calvinleung.hashnode.dev/using-luks2-for-encrypted-application-storage-on-linux?utm_source=hashnode&utm_medium=feed)

Recently I am asked to add one more layer of protection of disk encryption to our data installed on a cloud development instance. I decided to use LUKS2, the goals include: Mount the decrypted filesy

7 min read · [calvinleung.hashnode.dev](https://calvinleung.hashnode.dev/using-luks2-for-encrypted-application-storage-on-linux?utm_source=hashnode&utm_medium=feed)

[Oct 9](https://hashnode.com/posts/using-luks2-for-encrypted-application-storage-on-linux/6ac8466c1376d0d101cff965)

### [How a Duplicate \`proxy\_set\_header Host\` Caused an Nginx 400 Bad Request](https://calvinleung.hashnode.dev/how-a-duplicate-proxy-set-header-host-caused-an-nginx-400-bad-request?utm_source=hashnode&utm_medium=feed)

I recently hit an Nginx 400 Bad Request while routing selected production traffic to a pre-production backend. The setup was roughly: Client | v CDN / Load Balancer | v Production Nginx |

3 min read · [calvinleung.hashnode.dev](https://calvinleung.hashnode.dev/how-a-duplicate-proxy-set-header-host-caused-an-nginx-400-bad-request?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-a-duplicate-proxy-set-header-host-caused-an-nginx-400-bad-request/6abe1d6b90fdc2a395fa47f3) [Oct 1](https://hashnode.com/posts/how-a-duplicate-proxy-set-header-host-caused-an-nginx-400-bad-request/6abe1d6b90fdc2a395fa47f3)
