> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tmaxopensql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/tmaxopensql/installation/binary/openha-dcs-distributed-configuration-store.md).

# OpenHA DCS (Distributed Configuration Store)

## 개요

OpenHA의 분산 구성 저장소로, 클러스터 멤버십과 각 인스턴스 상태를 안정적으로 저장·공유하며, 리더 선출을 수행합니다. 이 기능은 etcd 기술을 기반으로 구현되었으며, 관리 도구로 `etcdctl`을 제공합니다.

{% embed url="<https://github.com/etcd-io/etcd>" %}

***

## 설치

### 1. OPENSQL\_INSTALL\_HOME 디렉토리 설정

```
. ./setenv.sh `pwd`
OPENSQL_INSTALL_HOME is set to: /home/opensql3.0-rockylinux9.4-pg16.8
OPENSQL_HOME is set to: /home/opensql
OPENSQL_HOME added to /home/opensql/.bashrc
```

### 2. OpenHA DCS 설치

```
./install.sh etcd
```

### 3. OpenHA DCS 설치여부 확인

설치를 완료하면 아래의 명령어로 OpenHA DCS(etcd 와 etcdctl 기반)의 버전을 확인할 수 있습니다.

```
[opensql@396dd54381db etcd-v3.5.6-linux-amd64]etcd --version
etcd Version: 3.5.6
Git SHA: cecbe35ce
Go Version: go1.16.15
Go OS/Arch: linux/amd64

[opensql@396dd54381db etcd-v3.5.6-linux-amd64]etcdctl version
etcdctl version: 3.5.6
API version: 3.5
```

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tibero.com/tmaxopensql/installation/binary/openha-dcs-distributed-configuration-store.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
