Coder Social home page Coder Social logo

Comments (13)

itzg avatar itzg commented on August 28, 2024

I didn't realize bungeecord had an option for PROXY protocol. A change will be needed for both repos, so I also created itzg/mc-monitor#6

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

I have added a variable called HEALTH_HOST that defaults to localhost, but in your case could be changed to point at the HAproxy's host/IP address. Would that work?

from docker-bungeecord.

nidotls avatar nidotls commented on August 28, 2024

I don't think this is a solution, because the HAProxy distributes the requests to all proxy servers at the same time, meaning if one proxy is offline all are classified as unhealthy

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

Oh, so you have several equivalent replicas of bungeecord instances behind HAproxy?

from docker-bungeecord.

nidotls avatar nidotls commented on August 28, 2024

Exactly. Distributed across multiple hosts

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

This is getting harder than I thought. It'll take an enhancement in https://github.com/Raqbit/mc-pinger also -- so three repos will need to be touched.

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

FYI, have a PR submitted ^

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

The latest image now includes the variable HEALTH_USE_PROXY, which you'll want to set to "true".

from docker-bungeecord.

nidotls avatar nidotls commented on August 28, 2024

Got /bin/sh: 1: /health.sh: Permission denied

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

Oops, try the latest image now.

from docker-bungeecord.

nidotls avatar nidotls commented on August 28, 2024

I don't know if this is related but on our production system (without HAProxy) the newest image doesn't start anymore sudo: /usr/lib/jvm/java-1.8-openjdk/bin/java: command not found.

Please give me feedback if I should create an issue for this.

On the HAProxy system the healthcheck runs now without problems, many thanks!

from docker-bungeecord.

itzg avatar itzg commented on August 28, 2024

Are you using Portainer or something similar? If so, that product has an issue with incorrectly retaining image declared variables like PATH and JAVA_HOME. As a result, image upgrades that involve a change to those variables (like switching to Java 11) are not handled properly.

from docker-bungeecord.

nidotls avatar nidotls commented on August 28, 2024

Has clarified, thank you very much!

from docker-bungeecord.

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.