[GH-ISSUE #106] What works in healthcheck? #218

Open
opened 2026-03-01 17:24:37 +03:00 by kerem · 5 comments
Owner

Originally created by @AnoopAlias on GitHub (Feb 15, 2018).
Original GitHub issue: https://github.com/abh/geodns/issues/106

@abh - Can you confirm if the health check works in the dev branch.

I see the https://github.com/abh/geodns/blob/dev/dns/hc.example.com.json file, but my tests with "health" label enabled didn't work as expected!.

So can you clarify what works and what not?

Originally created by @AnoopAlias on GitHub (Feb 15, 2018). Original GitHub issue: https://github.com/abh/geodns/issues/106 @abh - Can you confirm if the health check works in the dev branch. I see the https://github.com/abh/geodns/blob/dev/dns/hc.example.com.json file, but my tests with "health" label enabled didn't work as expected!. So can you clarify what works and what not?
Author
Owner

@leeweir commented on GitHub (May 14, 2019):

I have tested it, but the health test does not work too. Is there any update? @abh

<!-- gh-comment-id:492174570 --> @leeweir commented on GitHub (May 14, 2019): I have tested it, but the health test does not work too. Is there any update? @abh
Author
Owner

@abligh commented on GitHub (May 16, 2019):

I wrote this patch a loooooong time ago. I haven't played with it for a while, and not since it was merged.

Does it pass "go test"? Do you see anything in the logs? Looks like abh@ refactored it a little while ago and maybe something broke. I see this in zones.go:

    // temporary, using this to keep the healthtest code
// compiling and vaguely included
healthChecker bool

which doesn't look good!

<!-- gh-comment-id:493171025 --> @abligh commented on GitHub (May 16, 2019): I wrote this patch a loooooong time ago. I haven't played with it for a while, and not since it was merged. Does it pass "go test"? Do you see anything in the logs? Looks like abh@ refactored it a little while ago and maybe something broke. I see this in zones.go: // temporary, using this to keep the healthtest code // compiling and vaguely included healthChecker bool which doesn't look good!
Author
Owner

@tphil commented on GitHub (Jun 11, 2019):

Trying to configure HC, but is not works for some reason as expected. When i am configuring HC on www like tucs, the ping stop to respond at all (even if port 80 is healthy) when i am removing the health: {} it's starting to work. The same thing is happening with tucs. Any advise help?

{
  "serial": 10,
  "ttl": 10,
  "max_hosts": 2,
  "targeting": "country continent @ regiongroup region",
  "data": {
    "": {
      "ns": {
        "ns2.domain.com.": null,
        "ns3.domain.com.": null
      }
    },
    "tucs": {
      "a": [
        [
          "192.168.0.1",
          100
        ],
        [
          "192.168.0.2",
          100
        ]
      ],
      "max_hosts": "1",
      "closest": true,
      "health": {
        "type": "tcp",
        "frequency": 15,
        "retry_time": 5,
        "retries": 2,
        "timeout": 3,
        "port": 80
      }
    }, 
    "www": {
      "a": [
        [
          "192.168.0.1",
          100
        ],
        [
          "192.168.0.2",
          100
        ]
      ],
      "max_hosts": "1",
      "closest": true,
      "health": {
        "type": "tcp",
        "frequency": 15,
        "retry_time": 5,
        "retries": 2,
        "timeout": 3,
        "port": 80
      }
    }
  }
}
<!-- gh-comment-id:500775014 --> @tphil commented on GitHub (Jun 11, 2019): Trying to configure HC, but is not works for some reason as expected. When i am configuring HC on www like tucs, the ping stop to respond at all (even if port 80 is healthy) when i am removing the health: {} it's starting to work. The same thing is happening with tucs. Any advise help? ``` { "serial": 10, "ttl": 10, "max_hosts": 2, "targeting": "country continent @ regiongroup region", "data": { "": { "ns": { "ns2.domain.com.": null, "ns3.domain.com.": null } }, "tucs": { "a": [ [ "192.168.0.1", 100 ], [ "192.168.0.2", 100 ] ], "max_hosts": "1", "closest": true, "health": { "type": "tcp", "frequency": 15, "retry_time": 5, "retries": 2, "timeout": 3, "port": 80 } }, "www": { "a": [ [ "192.168.0.1", 100 ], [ "192.168.0.2", 100 ] ], "max_hosts": "1", "closest": true, "health": { "type": "tcp", "frequency": 15, "retry_time": 5, "retries": 2, "timeout": 3, "port": 80 } } } } ```
Author
Owner

@sanqi commented on GitHub (Jun 15, 2020):

Do you have any plans to repair it? @abh

<!-- gh-comment-id:644207033 --> @sanqi commented on GitHub (Jun 15, 2020): Do you have any plans to repair it? @abh
Author
Owner

@Gabitzuu commented on GitHub (Sep 28, 2021):

Looks like I have a issue with health checks as well. The DNS server doesn't return any record if I have this health object defined:

            "health": {
                "type": "tcp",
                "frequency": 15,
                "retry_time": 5,
                "retries": 2,
                "timeout": 3,
                "port": 25565
            }

@abh some news about it?

<!-- gh-comment-id:929581624 --> @Gabitzuu commented on GitHub (Sep 28, 2021): Looks like I have a issue with health checks as well. The DNS server doesn't return any record if I have this health object defined: ```json "health": { "type": "tcp", "frequency": 15, "retry_time": 5, "retries": 2, "timeout": 3, "port": 25565 } ``` @abh some news about it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#218
No description provided.