Main
About
Main
About
Posts
dumb-init 이 손자 프로세스를 기다리지 않아 graceful shutdown 이 동작하지 않던 이슈
TL; DR dumb-init 을 PID 1 로 두어도 를 shell form 으로 쓰면 프로세스 트리가 3단 구조가 된다 SIGTERM 은 프로세스 그룹 전송이라 앱까지 도달하지만 sh 는 SIGTERM 을 받자마자 바로 종료되고 dumb…
Read more…
cprayer
22 September, 2026 - 6 min read
Topology Aware Routing 으로 인해 일부 pod 에만 트래픽이 몰린 이슈
TL; DR Topology Aware Routing 은 zone 별 노드의 allocatable CPU 비율로 forZones 힌트를 계산한다 pod 가 zone 에 고르게 배치되지 않은 상태에서 힌트가 붙으면 쏠림(skew…
Read more…
cprayer
11 September, 2026 - 5 min read
redis 정리
redis는 epoll, kqueue 와 같은 I/O 멀티 플렉싱을 통해 이벤트 루프 기반의 싱글 쓰레드로 동작하고 다양한 자료구조(string, set, zset, pubsub, hyperloglog, etc…
Read more…
cprayer
21 February, 2026 - 1 min read
mongo document 가 동시에 대량 TTL expired 될 때 동작
mongo에서는 TTL index 를 통해 document 를 특정 시간 이후 자동으로 삭제할 수 있다 만약에 동시에 엄청 많은 document…
Read more…
cprayer
26 December, 2025 - 1 min read
kotlin.math.round(4.5) = kotlin.math.round(3.5) ?, 사사오입과 오사오입(Round half to even)
TL; DR Dobule 타입을 사용할 때 흔히 아는 반올림(사사오입)을 기대하는 경우라면 roundToInt / roundToLong…
Read more…
cprayer
24 December, 2025 - 1 min read
spring boot 2 / 3 / 4(spring batch 4 / 5 / 6) 에서 배치용 datasource / platformTransactionManager 설정 방법
spring boot 2.7.4(spring batch 4) 하나의 datasource만 사용하는 경우에는 EnableBatchProcessing 어노테이션 + application.yaml(spring.datasource…
Read more…
cprayer
24 December, 2025 - 2 min read
mysql 인덱스 관련 정리
인덱스는 ASC로 만들어도 DESC 방향으로 순회 가능 DESC 정렬은 ASC 인덱스를 역순으로 스캔할 수 있다. 다만 ASC 스캔 대비 오버헤드가 있을 수 있다 MySQL 5.x에서는 를 써도 실제 저장은 ASC였고 8.x부터는 실제로 DESC…
Read more…
cprayer
24 November, 2025 - 2 min read
docker image layer는 압축 가능하다
동일한 이미지 태그를 가진 이미지가 ECR 내에서 볼 때와 로컬 명령을 통해 봤을 때 로컬 이미지 용량이 더 컸었다 왜 그런지 찾아보니 Viewing the contents and details of a repository in Amazon ECR…
Read more…
cprayer
23 November, 2025 - 1 min read
eclipse-temurin 17.0.8.1 에서 C2 Compiler crash(SIGSEGV) 발생
eclipse-temurin 17.0.8.1 사용 시 간헐적으로 아래와 같은 JVM SIGSEGV Crash 로그와 함께 어플리케이션이 종료되면서 continer가 재기동되었다 이슈가 해결된 버전(ex. 17.0.15_…
Read more…
cprayer
15 November, 2025 - 1 min read
argocd의 3-way diff 로 인한 이슈
최근 Kubernetes 환경에서 ArgoCD와 HPA(Horizontal Pod Autoscaler)를 함께 사용하던 중 프로덕션 환경에서 배포 도중 순간적인 Latency 증가와 요청 실패가 발생했다 non-production…
Read more…
cprayer
09 November, 2025 - 2 min read
1
2
3
Tags
k8s (8)
troubleshooting (7)
network (3)
redis (3)
spring (3)
docker (2)
C2 Compiler (1)
ECR (1)
HPA (1)
HTTP (1)
IEEE 754 (1)
JIT (1)
RFC (1)
TCP (1)
absolute-fqdn (1)
argocd (1)
cka (1)
communicationsException (1)
data-structure (1)
dbcp2 (1)
dns-timeout-issue (1)
docker-registry (1)
domain (1)
dumb-init (1)
eclipse-temurin (1)
extended keepalive (1)
git (1)
graceful-shutdown (1)
hbase (1)
hbase-sharded-client (1)
java (1)
k8s-probe (1)
k8s-secret (1)
k8s-tls (1)
keep-alive (1)
kotlin (1)
kube-proxy (1)
lettuce (1)
mongo (1)
mysql (1)
netty (1)
nf-conntrack (1)
openjdk (1)
redis-sentinel (1)
search-domain (1)
spring-batch (1)
spring-bean (1)
spring-bean-lite-mode (1)
spring-boot (1)
spring-request-mapping (1)
topology-aware-routing (1)
ubuntu (1)
vegeta (1)