mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-11 12:19:02 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# Optional default interval shared by every service.
|
|
interval: 1m
|
|
counter_key: counter
|
|
|
|
services:
|
|
- adapter: redis
|
|
config:
|
|
url: redis://default@redis-a.example.com:6379
|
|
namespace: keepalive
|
|
|
|
- adapter: valkey
|
|
# Example: this service runs every 30s while others use the root interval.
|
|
interval: 30s
|
|
config:
|
|
url: valkey://default@valkey-a.example.com:6379
|
|
|
|
- adapter: postgresql
|
|
config:
|
|
url: postgresql://user:pass@postgres-a.example.com:5432/keepalive?sslmode=require
|
|
|
|
- adapter: mysql
|
|
config:
|
|
dsn: user:pass@tcp(mysql-a.example.com:3306)/keepalive
|
|
|
|
- adapter: mongodb
|
|
config:
|
|
uri: mongodb+srv://user:pass@mongo-a.example.com
|
|
database: keepalive
|
|
collection: counter
|
|
|
|
- adapter: couchbase
|
|
config:
|
|
connection_string: couchbases://couchbase-a.example.com
|
|
username: user
|
|
password: pass
|
|
bucket_name: keepalive
|
|
scope_name: _default
|
|
collection_name: _default
|
|
ready_timeout: 30s
|
|
# Optional. Set only when this user can create a missing bucket.
|
|
# bucket_ram_quota_mb: 128
|