hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] Cluster mongo is not supported

Open ZachariahHu opened this issue 1 year ago β€’ 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

image

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s):

Debug logs

No response

Anything else?

No response

ZachariahHu avatar Mar 27 '24 02:03 ZachariahHu

not support mongodb cluster now, we will do it.

tomsun28 avatar Mar 28 '24 14:03 tomsun28

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


not support mongodb cluster now, we will do it.

hertzbeat avatar Mar 28 '24 14:03 hertzbeat

The reason for this bug is that the MongoDB collector starts a multi-document transaction through a session to read the MongoDB status. According to the official MongoDB documentation, the MongoDB version deployed on a single machine only supports this function when it is 3.6 or above, so the error "Sessions are not supported by the MongoDB cluster to which this client is connected" will be reported. You can now solve this problem by upgrading the MongoDB version deployed on a single machine to above 3.6 or converting to cluster deployment. We are in the process of compatibility with the old version and will notify you in this issue once it is compatible.

gjjjj0101 avatar May 14 '24 08:05 gjjjj0101