Skip to content

Making runtime config change did not work #132

@heisk3478

Description

@heisk3478

Hello,

This is my docker compose:

    image: envoyproxy/ratelimit:v1.4.0
    container_name: ratelimit
    command: /usr/local/bin/ratelimit
    ports:
      - 8050:8080
      - 8051:8081
      - 6070:6070
    volumes:
      - binary:/usr/local/bin/
      - ./examples:/data
    environment:
      - USE_STATSD=false
      - LOG_LEVEL=debug
      - REDIS_SOCKET_TYPE=tcp
      - REDIS_URL=redis:6379
      - RUNTIME_ROOT=/data
      - RUNTIME_SUBDIRECTORY=/
      - RUNTIME_IGNOREDOTFILES=true
    depends_on:
      - redis

When I make changes in /data/config/config.yaml, the event is not catched.

However, if I do something in root /, I can see logs like :

ratelimit         | time="2020-04-10T03:47:58Z" level=debug msg="Got event \"//config.yaml\": REMOVE"
ratelimit         | time="2020-04-10T03:47:58Z" level=debug msg="Got event \"//config.yaml\": CREATE"
ratelimit         | time="2020-04-10T03:47:58Z" level=debug msg="Got event \"//config.yaml\": WRITE"
ratelimit         | time="2020-04-10T03:47:58Z" level=debug msg="Got event \"//config.yaml\": WRITE"

When I set - RUNTIME_ROOT=/data/sub/sub1, then the event would be caught if I make changes in /data/sub

Not sure if it's a bug or I missed something here.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions