Coder Social home page Coder Social logo

Comments (2)

Hamper avatar Hamper commented on July 30, 2024 1

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.

guscarreon avatar guscarreon commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.