> For the complete documentation index, see [llms.txt](https://docs.tibero.com/prosync/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/prosync/administration/agent.md).

# Agent

Agent 프로세스에 대해 안내한다.

## Agent Process <a href="#agent-process" id="agent-process"></a>

### Process 설명 <a href="#process" id="process"></a>

Agent 프로세스는 Admin 프로세스 또는 ProSync Manager로부터 메시지를 수신하면, 이를 ext, apply, llob 프로세스에 전달하고, 처리 결과를 다시 Admin 프로세스 및 ProSync Manager에 전달한다. 또한, ext, apply, llob 프로세스의 기동, 종료 등의 작업을 수행한다.\
추가적으로 CM Failover 기능을 사용하는 경우 CM 모니터링 및 하위 프로세스 모니터링 작업도 수행한다.

<figure><img src="https://content.gitbook.com/content/TPAsnFnrfDuUTrH7BU6a/blobs/TmGmer5UHnUrU98nQmec/image.png" alt=""><figcaption><p>그림 1. Agent Process</p></figcaption></figure>

***

## Threads <a href="#threads" id="threads"></a>

### Control Thread <a href="#control-thread" id="control-thread"></a>

기동 시 다른 Thread 시작, 메시지 수신 및 전송 등의 작업을 수행한다.

### Worker Thread <a href="#worker-thread" id="worker-thread"></a>

ext, apply, llob 프로세스의 기동, 종료 등의 작업을 수행한다.

### Monitor Thread <a href="#monitor-thread" id="monitor-thread"></a>

CM Failover 기능을 사용하는 경우 CM을 모니터링하여 CM 상태에 따라 하위 프로세스의 기동, 종료 작업을 수행한다. CM Failover 기능에 대한 자세한 내용은 [CM Failover 기능 사용](https://docs.tibero.com/prosync/installation/examples/cm-failover.md) 을 참고한다.
