Skip to main content

Kafka Installation and Cluster Setup

· 7 min read

What is Kafka?

Kafka is a distributed event streaming platform designed for large-scale data collection, processing, storage, and integration. Its use cases include distributed data streams, stream processing, data integration, and pub/sub messaging.

To better understand Kafka, we first need to grasp the concept of an event.

Redis Sentinel, failover과정 정리

· 9 min read

Redis Sentinel은 Redis HA솔루션이다. Redis는 Redis Cluster라고 하는 Cluster제품이 따로 있으며 Sentinel은 Redis Cluster와 관련이 없다. Sentinel은 cluster가 필요없는 사용자들에게 간단한 failover기능을 제공하는 제품이다.

Resolving Elasticsearch Unassigned Shard Issues: X of Y shards failed

· 4 min read

When opening Kibana, you might sometimes see the error message “X of Y shards failed” which usually indicates that some indices have unassigned shards. In such cases, the Elasticsearch (ES) cluster status is typically Yellow or Red.

Let’s first understand the four shard states in ES:

  • INITIALIZING - The shard is in the initialization state and unavailable. This occurs briefly when creating an index or starting a node.

  • RELOCATING - Shards are being moved due to node addition or removal, a transient state.

  • STARTED - The shard is active and available to handle requests.

  • UNASSIGNED - The shard has failed to be allocated.

Linux에 OpenResty 소스 빌드하여 설치하기

· 3 min read

아래 설치 방법은 Nginx 설치 시에도 동일하게 적용할 수 있습니다. 단, ./configure 단계에서 --with-luajit 옵션만 제외하면 됩니다. 일반적으로 Nginx가 아닌 OpenResty를 선택하는 이유는 LuaJIT을 사용하기 위해서입니다.

Python, Locust를 이용한 부하 테스트

· 6 min read

본 포스트에서는 Python 기반의 오픈소스 분산 부하 테스트 도구인 Locust의 사용법을 소개합니다.

Locust는 LoadRunner나 JMeter와 같은 기존의 성능 테스트 도구에 비해 단일 서버에서 더 높은 부하를 생성할 수 있으며, 순수 Python 코드로 테스트 스크립트를 작성할 수 있다는 점에서 개발자 친화적이고 간편한 도구입니다.

macOS에서 brew install 시 Error: No such file or directory 오류 해결

· One min read

brew install 명령을 실행할 때 아래와 같은 Error: No such file or directory *** 오류가 발생하는 경우가 있습니다.

macOS가 시스템 업데이트후 Homebrew에 문제가 생기는 경우가 흔한데, 일반적으로 재설치를 통해 해결할 수 있습니다.

Error: No such file or directory @ rb_sysopen - /Users/geuni/Library/Caches/Homebrew/downloads/9c91a337f95d642c3eed905e43f8aa6dd50903ba990691c3001570277ad1ccd2--gdbm-1.21_1.monterey.bottle.tar.gz