Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix websocket stats on kubernetes #7009

Conversation

chrismeyersfsu
Copy link
Member

  • broadcast websockets have stats tracked (i.e. connection status,
    number of messages total, messages per minute, etc). Previous to this
    change, stats were tracked by ip address, if it was defined on the
    instance, XOR hostname. This changeset tracks stats by hostname.

delete and re-add host when ip address changes

  • The websocket backplane interconnect is done via ip address for
    Kubernetes and OpenShift. On init run_wsbroadcast reads all Instances
    from the DB and makes a decision to use the ip address or the hostname
    based, with preference given to the ip address if defined. For
    Kubernetes and OpenShift the nodes can load the Instance before the
    ip_address is set. This would cause the connection to be tried by
    hostname rather than ip address. This changeset ensures that an ip
    address set after an Instance record is created will be detected and
    used.

* broadcast websockets have stats tracked (i.e. connection status,
number of messages total, messages per minute, etc). Previous to this
change, stats were tracked by ip address, if it was defined on the
instance, XOR hostname. This changeset tracks stats by hostname.
@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

* The websocket backplane interconnect is done via ip address for
Kubernetes and OpenShift. On init run_wsbroadcast reads all Instances
from the DB and makes a decision to use the ip address or the hostname
based, with preference given to the ip address if defined. For
Kubernetes and OpenShift the nodes can load the Instance before the
ip_address is set. This would cause the connection to be tried by
hostname rather than ip address. This changeset ensures that an ip
address set after an Instance record is created will be detected and
used.
@chrismeyersfsu chrismeyersfsu force-pushed the fix-websocket_stats_on_kubernetes branch from caa2ac8 to 155faa0 Compare May 13, 2020 18:12
@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

@chrismeyersfsu
Copy link
Member Author

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 23a20b9 into ansible:devel May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants