Giter VIP home page Giter VIP logo

Comments (6)

antongavrik avatar antongavrik commented on June 14, 2024

To enable query logging set "LOG: true" in polaris-pdns.yaml, "loglevel=6" in pdns.conf

"/opt/polaris/bin/polaris-memcache-control get-ppdns-state" shows the table against which the query distribution is performed.

from polaris-gslb.

john-bakker avatar john-bakker commented on June 14, 2024

Anton,

Thanks for the quick response,

When I run get-ppdns-state i get the following output

{
    "globalnames": {
        "www.example.com": {
            "ttl": 1,
            "pool_name": "www-example"
        }
    },
    "pools": {
        "www-example": {
            "status": false,
            "lb_method": "twrr",
            "fallback": "any",
            "max_addrs_returned": 1,
            "dist_tables": {
                "_default": {
                    "rotation": [
                        "192.168.168.101",
                        "192.168.168.100",
                        "192.168.168.10"
                    ],
                    "index": 2,
                    "num_unique_addrs": 3
                }
            }
        }
    },
    "timestamp": 1484910165.609691
}

It looks like it is only having a default response, no minions/master region ?

from polaris-gslb.

antongavrik avatar antongavrik commented on June 14, 2024

The pool is in down state, health checks aren't passing, refer to "/opt/polaris/bin/polaris-memcache-control get-generic-state" for details.

from polaris-gslb.

john-bakker avatar john-bakker commented on June 14, 2024

Anton,

I forgot to restart polaris after making some changes , that's why it showed up like that.
After the restart i ran get-ppdns-state again, now it shows me :

{
    "globalnames": {
        "www.example.com": {
            "pool_name": "www-example",
            "ttl": 1
        }
    },
    "timestamp": 1484913420.7073374,
    "pools": {
        "www-example": {
            "lb_method": "twrr",
            "max_addrs_returned": 1,
            "fallback": "any",
            "dist_tables": {
                "_default": {
                    "num_unique_addrs": 3,
                    "rotation": [
                        "192.168.168.100",
                        "192.168.168.10",
                        "192.168.168.101"
                    ],
                    "index": 0
                },
                "Minions": {
                    "num_unique_addrs": 2,
                    "rotation": [
                        "192.168.168.100",
                        "192.168.168.101"
                    ],
                    "index": 0
                },
                "Master": {
                    "num_unique_addrs": 1,
                    "rotation": [
                        "192.168.168.10"
                    ],
                    "index": 0
                }
            },
            "status": true
        }
    }
}

Strangely enough now i do get the proper responses.

Thanks for your help!

do you know the log location for pdns ?

from polaris-gslb.

antongavrik avatar antongavrik commented on June 14, 2024

It should go to syslog, query logging impacts the performance and is not recommended to be enabled during normal operations.

from polaris-gslb.

john-bakker avatar john-bakker commented on June 14, 2024

from polaris-gslb.

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.