简体   繁体   English

Mysql Dashboard覆盖客户端(UUID问题)

[英]Mysql Dashboard overwriting client (UUID issues)

I am using the MySQL dashboard and I have 2 servers which are master/slave to each other. 我正在使用MySQL仪表板,并且我有2个相互为主/从的服务器。

When I create the mysql agent, with a unique UUID , everything works fine. 当我创建具有唯一 UUID的mysql代理时,一切正常。 The agent connects to dashboard and displays correctly. 代理连接到仪表板并正确显示。 Except that the hostname isn't honoured from agent.ini. 除非从agent.ini不接受主机名。 However when I start the agent on the 2nd server, it overwrites the first one. 但是,当我在第二台服务器上启动代理时,它会覆盖第一台服务器。 The name is the same. 名字是一样的。 The server UUID is the same (which is odd given that I manually configured the UUID ) but it still pulls it from the database and not the INI in the server details. 服务器UUID是相同的(鉴于我手动配置了UUID ,这很奇怪),但是它仍然从数据库而不是服务器详细信息中的INI中提取它。 However, the host isn't the same. 但是,主机并不相同。

In other words instead of having 2 instances, it takes over the previous one. 换句话说,它取代了之前的2个实例。

I disabled UUID discovery. 我禁用了UUID发现。 I set the UUID , but can't seem to find any solution to this. 我设置了UUID ,但似乎找不到任何解决方案。

I hope someone can point me in the right direction before I loose all my hair. 我希望有人在我松开所有头发之前能指出正确的方向。

Well darn it! 好该死! Sometimes thinking two seconds solves it. 有时思考两秒钟即可解决问题。 Since this is replicated host and I have to replicate mysql database ( don't like to do that, I much prefer just replication needed DB and leave mysql database alone), the inventory was shared between hosts. 由于这是复制的主机,并且我必须复制mysql数据库(不喜欢这样做,我更喜欢仅复制所需的DB并单独保留mysql数据库),因此清单在主机之间共享。 Well now this was the issue. 好了,这就是问题所在。

To solve it I recreated the inventory, but simply :'truncate mysql.inventory' and restart the agent on the host. 为了解决这个问题,我重新创建了清单,但是简单地:'truncate mysql.inventory'并重新启动主机上的代理。

All is good! 一切都很好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM