설정 레퍼런스

Wippy는 .wippy.yaml 파일로 설정됩니다. 모든 옵션에는 합리적인 기본값이 있습니다.

아래의 모든 값은 실행 시 wippy run --set section.path=value로 재정의할 수 있습니다(반복 가능하며, 파일보다 우선합니다). 이러한 설정 섹션이 아니라 개별 레지스트리 엔트리를 재정의하려면 override: 섹션이나 -o를 사용하세요 — 엔트리 재정의를 참고하세요.

Logger

zap 로거 인코더를 제어합니다. CLI 플래그(-v, -c, -s)는 레벨/출력을 재정의합니다. yaml로 제어할 수 있는 유일한 옵션은 인코딩입니다.

필드 타입 기본값 설명
encoding string console 인코더: console(사람이 읽기 쉬운) 또는 json(구조화됨)
logger:
  encoding: json

로그 매니저

런타임 로그 라우팅 제어. 콘솔 출력은 CLI 플래그 (-v, -c, -s)로 설정됩니다.

필드 타입 기본값 설명
propagate_downstream bool true 콘솔/파일 출력으로 로그 전송
stream_to_events bool false 프로그래밍 접근을 위해 이벤트 버스에 로그 퍼블리시
min_level int -1 최소 레벨: -1=debug, 0=info, 1=warn, 2=error
logmanager:
  propagate_downstream: true
  stream_to_events: false
  min_level: 0

참조: Logger 모듈

프로파일러

CPU/메모리 프로파일링을 위한 Go pprof HTTP 서버. -p 플래그 또는 설정으로 활성화.

필드 타입 기본값 설명
enabled bool false 프로파일러 서버 시작
address string localhost:6060 리슨 주소
read_timeout duration 15s HTTP 읽기 타임아웃
write_timeout duration 15s HTTP 쓰기 타임아웃
idle_timeout duration 60s Keep-alive 타임아웃
profiler:
  enabled: true
  address: "localhost:6060"

http://localhost:6060/debug/pprof/에서 접근

보안

전역 보안 동작. 개별 정책은 security.policy 엔트리로 정의됩니다.

필드 타입 기본값 설명
strict_mode bool false 보안 컨텍스트 불완전 시 접근 거부
security:
  strict_mode: true

참조: 보안 시스템, 보안 모듈

레지스트리

엔트리 스토리지 및 버전 히스토리. 레지스트리는 모든 설정 엔트리를 보유합니다.

필드 타입 기본값 설명
enable_history bool true 엔트리 버전 추적
history_type string memory 스토리지: memory, sqlite, nil
history_path string .wippy/registry.db SQLite 파일 경로
registry:
  history_type: sqlite
  history_path: /var/lib/wippy/registry.db

참조: 레지스트리 개념, 레지스트리 모듈

릴레이

노드 간 프로세스 메시지 라우팅.

필드 타입 기본값 설명
node_name string local 이 릴레이 노드의 식별자
relay:
  node_name: worker-1

참조: 프로세스 모델

슈퍼바이저

서비스 라이프사이클 관리. 라이프사이클 이벤트 디스패치에 사용되는 슈퍼바이저의 내부 제어 메일박스를 제어합니다.

필드 타입 기본값 설명
host.buffer_size int 1024 내부 제어 메일박스 용량
host.worker_count int 16 동시 디스패처 워커
supervisor:
  host:
    buffer_size: 2048
    worker_count: 32

참조: 슈퍼비전 가이드

`process.host`별 워커와 큐는 이 전역 섹션이 아니라 엔트리 자체에서 (`workers`, `queue_size`, `local_queue_size`) 설정합니다. [Process Host](system/process-host.md) 엔트리 종류를 참조하세요.

Lua 런타임

Lua VM 캐싱 및 표현식 평가.

필드 타입 기본값 설명
proto_cache_size int 60000 컴파일된 프로토타입 캐시
main_cache_size int 10000 메인 청크 캐시
cache.enabled bool false 컴파일된 바이트코드/타입체크 캐시를 디스크에 영속화
cache.dir string (시스템 캐시 디렉토리) 캐시 디렉토리 경로
cache.mode string read_write 캐시 모드: read_write, read_only, write_only
type_system.enabled bool false 정적 타입 검사 활성화
type_system.strict bool false 타입 경고를 오류로 처리
lua:
  proto_cache_size: 60000
  cache:
    enabled: true
    dir: .cache/lua
  type_system:
    enabled: true

참조: Lua 개요

Finder

레지스트리 검색 캐싱. 엔트리 조회에 내부적으로 사용.

필드 타입 기본값 설명
query_cache_size int 1000 캐시된 쿼리 결과
regex_cache_size int 100 컴파일된 정규식 패턴
finder:
  query_cache_size: 2000

OpenTelemetry

OTLP를 통한 분산 트레이싱 및 메트릭 익스포트.

필드 타입 기본값 설명
enabled bool false OTEL 활성화
endpoint string localhost:4318 OTLP 엔드포인트
protocol string http/protobuf 프로토콜: grpc, http/protobuf
service_name string wippy-runtime 서비스 식별자
service_version string 서비스 버전 태그
insecure bool true 평문 OTLP 연결 허용
sample_rate float 1.0 트레이스 샘플링 (0.0-1.0)
propagators string[] [tracecontext, baggage] 컨텍스트 전파자
traces_enabled bool true 트레이스 익스포트
metrics_enabled bool false 메트릭 익스포트
http.enabled bool true HTTP 요청 트레이싱
http.extract_headers bool true 수신 헤더에서 트레이스 컨텍스트 추출
http.inject_headers bool true 발신 헤더에 트레이스 컨텍스트 주입
process.enabled bool true 프로세스 라이프사이클 트레이싱
process.trace_lifecycle bool true spawn/terminate에 대한 span 발행
interceptor.enabled bool true 함수 호출 트레이싱
interceptor.order int 100 인터셉터 우선순위
queue.enabled bool true 큐 publish/consume 트레이싱
temporal.enabled bool false Temporal 워크플로우 트레이싱
otel:
  enabled: true
  endpoint: "http://jaeger:4318"
  traces_enabled: true
  process:
    trace_lifecycle: true

표준 OTEL 환경 변수(OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, OTEL_TRACES_SAMPLER_ARG, OTEL_PROPAGATORS, OTEL_SDK_DISABLED)는 해당 필드를 재정의합니다.

참조: 관측성 가이드

셧다운

그레이스풀 셧다운 동작.

필드 타입 기본값 설명
timeout duration 30s 컴포넌트 중지 최대 대기 시간
shutdown:
  timeout: 60s

메트릭

내부 메트릭 수집 버퍼.

필드 타입 기본값 설명
buffer.size int 10000 메트릭 버퍼 용량
interceptor.enabled bool false 함수 호출 자동 추적
metrics:
  buffer:
    size: 20000
  interceptor:
    enabled: true

참조: 메트릭 모듈, 관측성 가이드

Prometheus

Prometheus 메트릭 엔드포인트.

필드 타입 기본값 설명
enabled bool false 메트릭 서버 시작
address string localhost:9090 리슨 주소
prometheus:
  enabled: true
  address: "0.0.0.0:9090"

Prometheus 스크레이핑을 위해 /metrics 엔드포인트 노출.

참조: 관측성 가이드

클러스터

멀티 노드 클러스터링: gossip 멤버십과 제한된 Raft 합의 코어. 아키텍처와 운영 모델은 클러스터 가이드를 참조하세요. 이 섹션은 설정 키 레퍼런스입니다.

최상위

필드 타입 기본값 설명
enabled bool false 클러스터링 활성화
name string hostname 노드 이름; 클러스터 전체에서 고유해야 함
failure_domain string 가용 영역/랙 레이블; gossip에서 광고되어 voter가 도메인 간에 분산됨

멤버십 (gossip)

memberlist를 통한 SWIM gossip. 노드 디스커버리, 장애 감지, 메타데이터 전파에 사용됩니다.

필드 타입 기본값 설명
membership.bind_addr string 0.0.0.0 Gossip 바인드 주소
membership.bind_port int 7946 Gossip 바인드 포트 (TCP+UDP)
membership.advertise_addr string 피어가 이 노드에 도달하기 위해 사용하는 주소 (NAT/k8s)
membership.join_addrs string 쉼표로 구분된 시드 host:port
membership.secret_key string Base64로 인코딩된 gossip 암호화 키 (인라인)
membership.secret_file string gossip 암호화 키를 보유하는 파일 경로

인터노드 (전송)

노드 간 릴레이와 Raft 트래픽을 전달하는 TCP 메시. Raft는 이 메시를 통해 동작하며(yamux 멀티플렉싱), 별도의 Raft 포트는 없습니다.

필드 타입 기본값 설명
internode.bind_addr string 0.0.0.0 메시 바인드 주소
internode.bind_port int 0 메시 포트 (0 = 자동: 7950-7959, 이후 임시 포트)
internode.auto_port bool true 부팅 시 실제 포트를 감지하여 고정하고 gossip에서 광고

Raft (합의)

제한된 Raft. Raft 상태는 기본적으로 fs-durable이며 raft.data_dir(기본값 ~/.wippy/store) 아래에 저장됩니다. 재시작된 노드는 여전히 피어로부터 쿼럼에 다시 참여합니다. store.kv.raft 엔트리는 이를 통해 복제됩니다. 부트스트랩은 gossip 기반(Consul/Nomad의 bootstrap_expect 방식)입니다.

필드 타입 기본값 설명
raft.data_dir string ~/.wippy/store fs-durable Raft 상태와 durable CRDT 스냅샷용 디렉터리(<data_dir>/_sys/ 아래). 경로가 해석되지 않을 때만 디스크 없음(홈 디렉터리가 없고 설정도 없는 경우)
raft.enabled bool true Raft 노드 실행; false이면 gossip 전용 클라이언트
raft.role string server server는 Raft 노드를 실행하고, client는 gossip 전용
raft.eligible bool true 이 노드가 voter로 선택될 수 있는지 여부
raft.priority int 100 Voter 선택 우선순위 (낮을수록 선호)
raft.bootstrap_expect int 1 초기 쿼럼 크기: 0=기존 클러스터에 참여, 1=단일 노드, N=N개의 eligible 피어를 기다린 후 쿼럼 형성
raft.max_voters int 5 Voter 상한선 (홀수여야 함); 초과하는 eligible 노드는 standby가 됨
raft.max_standbys int 4 승격을 위해 준비 상태로 유지되는 비투표 멤버; voters+standbys를 초과하는 노드는 Raft 멤버가 아님
raft.reconcile_debounce duration 2s voter 조정자 실행 전 gossip 이벤트 이후 집계 창
raft.reconcile_timeout duration 2s 조정 패스당 상한
raft.heartbeat_timeout duration 3s 선거를 시작하기 전 팔로워 대기 시간
raft.election_timeout duration 3s 후보 선거 타임아웃 (heartbeat 이상으로 제한됨)
raft.commit_timeout duration 500ms 유휴 리더 하트비트 주기
raft.snapshot_threshold uint64 8192 새 스냅샷 전 마지막 스냅샷 이후의 로그 항목 수
raft.snapshot_interval duration 2m 스냅샷 확인 간격
raft.snapshot_retain int 3 보관되는 스냅샷 수
raft.trailing_logs uint64 10240 스냅샷 이후 보관되는 로그 항목 수
raft.max_append_entries int 16 AppendEntries RPC당 최대 항목 수
raft.leader_probe_interval duration 3s 글로벌 레지스트리 리더 도달 가능성 프로브 주기
raft.leader_probe_grace int 3 리더를 도달 불가능으로 선언하기 전 연속 프로브 실패 횟수

단일 노드 (개발) — 클러스터링 활성화, 즉시 자체 부트스트랩:

cluster:
  enabled: true
  name: dev
  raft:
    bootstrap_expect: 1

3노드 voting 클러스터 — 각 노드가 다른 노드를 시드로 나열하고 쿼럼을 형성하기 전에 세 노드 모두를 기다림:

cluster:
  enabled: true
  name: node-1
  failure_domain: us-east-1a
  membership:
    bind_port: 7946
    join_addrs: "node-2:7946,node-3:7946"
    secret_file: /etc/wippy/cluster.key
  raft:
    bootstrap_expect: 3
    max_voters: 5

Gossip 전용 클라이언트 — 명명/메시징을 위해 클러스터에 참여하지만 Raft를 실행하지 않음:

cluster:
  enabled: true
  name: edge-7
  membership:
    join_addrs: "node-1:7946,node-2:7946"
  raft:
    role: client

LSP

에디터 통합을 위한 Language Server Protocol 서버.

필드 타입 기본값 설명
enabled bool false TCP 서버 활성화
address string :7777 TCP 리슨 주소
http_enabled bool false HTTP 전송 활성화
http_address string :7778 HTTP 리슨 주소
http_path string /lsp HTTP 엔드포인트 경로
http_allow_origin string * CORS 허용 오리진
max_message_bytes int 8388608 수신 메시지 최대 크기
lsp:
  enabled: true
  address: ":7777"
  http_enabled: true

참조: LSP 가이드

네트워크 서비스

오버레이 네트워크 관리자 (SOCKS5, I2P, Tailscale 드라이버).

필드 타입 기본값 설명
state_dir string .wippy/net 드라이버 상태 저장 디렉토리
default_network string 엔트리가 network를 생략할 때 적용되는 기본 네트워크 ID
network_service:
  state_dir: /var/lib/wippy/net
  default_network: app:tailscale

참조: 네트워크 오버레이

HTTP 디스패처

HTTP 디스패치 함수와 아웃바운드 요청에 사용되는 공유 HTTP 클라이언트 풀 튜닝.

필드 타입 기본값 설명
dispatcher.http.timeout duration 0 (없음) 요청당 타임아웃
dispatcher.http.max_idle_conns int 0 (stdlib) 모든 호스트의 최대 유휴 연결 수
dispatcher.http.max_idle_per_host int 0 (stdlib) 호스트당 최대 유휴 연결 수
dispatcher.http.idle_conn_timeout duration 0 (stdlib) 유휴 연결 타임아웃
dispatcher.http.max_clients int 0 (무제한) 최대 풀링 클라이언트 수
dispatcher:
  http:
    timeout: 30s
    max_idle_per_host: 32

모듈

wippy install/update에서 사용되는 모듈 레지스트리 클라이언트.

필드 타입 기본값 설명
registry_url string https://hub.wippy.ai 레지스트리 엔드포인트
modules:
  registry_url: https://internal-registry.example.com

익스텐션

부팅 시 로드되는 네이티브 Go 플러그인 익스텐션 (Unix 전용).

필드 타입 기본값 설명
enabled bool true 익스텐션 로드
paths string[] 플러그인 파일 경로 (설정 디렉토리 기준)
extensions:
  enabled: true
  paths:
    - ./extensions/myplugin.so

환경 변수

변수 설명
GOMEMLIMIT 메모리 제한 (--memory-limit 플래그 재정의)

참고