Skip to content

Commit

Permalink
chore: add full sample redis sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Dec 11, 2023
1 parent 0a0db31 commit 943f9ab
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ Prebid Cache makes use of a Cassandra client that supports latest 3 major releas
Prebid Cache makes use of a Redis Go client compatible with Redis 6. Full documentation of the Redis Go client Prebid Cache uses can be found [here](https://github.com/go-redis/redis).
| Configuration field | Type | Description |
| --- | --- | --- |
| host | string | Redis server URI |
| hosts |string array | Redis server sentinel URI |
| mastername | string | Redis master sentinel name |
| port | integer | Redis server port |
| host | string | Redis server URI (redis standalone mode) |
| port | integer | Redis server port (redis standalone mode) |
| hosts |string array | Redis server sentinel URI (redis sentinel mode)|
| mastername | string | Redis master sentinel name (redis sentinel mode)|
| password | string | Redis password |
| db | integer | Database to be selected after connecting to the server |
| expiration | integer | Availability in the Redis system in Minutes |
Expand Down Expand Up @@ -286,8 +286,6 @@ backend:
hosts: ["10.0.0.1:11211", "127.0.0.1"]
redis:
host: "127.0.0.1"
hosts: ["127.0.0.1:26379", "127.0.0.2:26379"]
mastername: "mastername"
port: 6379
password: "redis-password"
db: 1
Expand Down
67 changes: 67 additions & 0 deletions config/configtest/sample_full_redis_sentinel_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
port: 9000
admin_port: 2525
index_response: "Any index response"
log:
level: "info"
rate_limiter:
enabled: false
num_requests: 150
request_limits:
max_size_bytes: 10240
max_num_values: 10
max_ttl_seconds: 5000
allow_setting_keys: true
backend:
type: "memory"
aerospike:
default_ttl_seconds: 3600
host: "aerospike.prebid.com"
hosts: ["aerospike2.prebid.com", "aerospike3.prebid.com"]
port: 3000
namespace: "whatever"
user: "foo"
password: "bar"
connection_idle_timeout_seconds: 2
cassandra:
hosts: "127.0.0.1"
keyspace: "prebid"
default_ttl_seconds: 60
memcache:
hosts: ["10.0.0.1:11211", "127.0.0.1"]
redis:
hosts: ["127.0.0.1:26379", "127.0.0.2:26379"]
mastername: "mastername"
password: "redis-password"
db: 1
expiration: 1
tls:
enabled: false
insecure_skip_verify: false
ignite:
scheme: "http"
host: "127.0.0.1"
port: 8080
secure: false
headers: !!omap
- Content-Length: 0
cache:
name: "whatever"
create_on_start: false
compression:
type: "snappy"
metrics:
type: "none"
influx:
host: "metrics-host"
database: "metrics-database"
username: "metrics-username"
password: "metrics-password"
enabled: true
prometheus:
port: 8080
namespace: "prebid"
subsystem: "cache"
timeout_ms: 100
enabled: true
routes:
allow_public_write: true

0 comments on commit 943f9ab

Please sign in to comment.