Skip to content

2023

What I learned in 2023.

2023-06-07

Install nvm, nodejs, elasticdump on Amazon Linux

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 16
npm install elasticdump -g

Error when nvm install -lts, it not fits to nodejs v18

node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)

2023-06-05

AWS Serverless Showdown: Redshift Spectrum or Athena – Which Should You Choose?

https://www.upsolver.com/blog/aws-serverless-redshift-spectrum-athena

  • Cost: Redshift > Athena
  • Both $5 per TB, but Redshift have cluster cost
  • Performance: Redshift > Athena
  • Diffcult: Athena > Redshift

2023-01-19

Kubernetes - terminationGracePeriodSeconds must bigger than preStop

ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination

terminationGracePeriodSeconds = sigkill = hard kill

preStop = sigterm = soft kill

When preStop runtime is over terminationGracePeriodSeconds, pod is killed forcefully.

And Kubernetes Event is like:

Exec lifecycle hook ([/bin/sh -c sleep 180]) for Container "..." in Pod "..." failed - error: command '/bin/sh -c sleep 180' exited with 137: , message: ""

Last update: July 17, 2023
Created: July 17, 2023