iroha
iroha copied to clipboard
[BUG] incorrect metric connected_peers with istio service mesh
OS and Environment
Linux, K8s
GIT commit hash
eca8569b
Minimum working example / Steps to reproduce
- Raise five peers in Kubernetes
- Istio must be turned off
- Metric
connected_peers= 4 on all peers - Turn on istio, restart the pods. Metric
connected_peers= 4 - Restart the pods again.
- Check the metric for peer0, peer1, peer4
connected_peers= 4, - Check the
connected_peersmetric for peer2 and peer3. It should be equal toconnected_peers= 3.
Peculiarities
- There are no errors in the logs related to the connection between peers
- Go to peer 3 (where connected_peers = 3), make a transaction - it should receive commit status.
- We go to another peer, for example peer1, where connected_peers = 4 - the transaction should be displayed in this peer
Actual result
The metric for peer0, peer1, peer4 connected_peers = 4,
The connected_peers metric for peer2 and peer3. It should be equal to connected_peers = 3.
Expected result
The metric connected_peers should be equal 4 in all peers
Logs in JSON format
Log contents
see attachments
Who can help to reproduce?
@BAStos525
Notes
No response
We also can see this metric dashboard in Grafana for internal usage (DM me).
Let's check first that it's metric issue and not smt with connectivity. Provided instructions to @BAStos525 how to check this.
- Check on iroha environment, where there are four peers in docker containers on different machines. Correct
connected_peersmetric value. I substitute the domain addresses of machines from trusted peer config file, the message is not sent to nc. It is also not sent via the IP addresses of the machines. - At another stand, where all four peers are in a container on one machine. Correct
connected_peersmetric value. They are on the same docker network, so I use the names of the containers, and the message comes. - k8s deployment, where istio is enabled. Wrong
connected_peersmetric value. Responses via nc come through the FQDN of the pods, as well as through the local peer addresses or peer service addresses.