Comments (2)
When using docker image "prebid/prebid-server" it is more convenient to use environment variables and don't replace full config file with mounts. Your latest push must resolve this issue because when sample host is defined as hosts it can be simply replaced with PBC_BACKEND_AEROSPIKE_HOSTS variable
from prebid-cache.
Good day @Hamper thanks for raising this question. Values inside the "hosts"
take precedence over "host"
, a field we intend to deprecate soon. The log message :
INFO[0005] Connected to Aerospike host(s) [127.0.0.1 aerospike.prebid.com] on port 3000
implies you are connected to 127.0.0.1
because aerospike.prebid.com
is not a real reachable endpoint from the internet. A way to correct this log message is to simply remove the "host"
entry from the config.yaml
file:
backend:
type: "aerospike" # Can also be "aerospike", "cassandra", "memcache" or "redis"
aerospike:
- host: "aerospike.prebid.com"
port: 3000
config.yaml
Whether you are reading "hosts"
from the configuration file config.yaml
or from an environment variable, we don't need the "host"
entry in the config file because this value's default is set to an empty string in line 50 of config/config.go
:
49 v.SetDefault("backend.type", "memory")
50 v.SetDefault("backend.aerospike.host", "")
51 v.SetDefault("backend.aerospike.hosts", []string{})
config/config.go
Let me know if this works for you.
from prebid-cache.
Related Issues (20)
- Port PR from PBC-Java: Buffer error logging updater
- Port PR from PBC-Java: Metrics: Fix issues caused by metric system update
- Port PR from PBC-Java: Tests: Remove timeout related tests HOT 1
- Port PR from PBC-Java: Fix: Circuit breakers blocking all requests after receiving multiple bad requests HOT 1
- Port PR from PBC-Java: Enhance http error responses
- Port PR from PBC-Java: Add ConditionalLogger
- Port PR from PBC-Java: Add logs in case of timeout
- Port PR from PBC-Java: Log Referer
- Port PR from PBC-Java: Enhance read miss logging HOT 1
- Port PR from PBC-Java: Refactor Error Handling HOT 1
- Port PR from PBC-Java: Bump com.aerospike:aerospike-client from 6.1.11 to 6.2.0
- Port PR from PBC-Java: Log JSON deserialization errors HOT 1
- Unit Test `TestNewAerospikeBackend` fails HOT 3
- Port PR from PBC-Java: Core: Update Java version
- Port PR from PBC-Java: Hotfix: Remove unused storage payload field HOT 1
- Port PR from PBC-Java: Improve Aerospike-related docs HOT 1
- Port PR from PBC-Java: Upgrade Spring Boot to 3.2.3 HOT 1
- Port PR from PBC-Java: Bump max request header size HOT 2
- Port PR from PBC-Java: Add EditorConfig and Refactoring HOT 1
- Port PR from PBC-Java: Fix Connection Header Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prebid-cache.