How to stop ejabberd from using mnesia [closed]

故事扮演 提交于 2019-12-06 05:58:11

I've personally learnt some about ejabberd this last week.

If you are running any DB other than mnesia, then not all modules that you have running will actually communicate with it.

For instance, mod_admin_extra will continue to work with the mnesia db, even after you have configured the server to work with postgress. So if you're doing alot of your adding/removing roster/users via the extra commands that mod_admin_extra provide (and other modules), then you're going to have to find some other way to do it.

Basically, there is no way to have ejabberd stop using the mnesia db at all, it will always use it for some sort of processing.

Looks like you missed one of the modules that need to be renamed with _odbc on them, namely mod_pubsub _> mod_pubsub_odbc

See here

It might also be worth looking through the /var/lib/ejabberd directory and just looking to see what DCD/DCL files there are, for as far as I understand, these files are the db files for mnesia. You can then try and figure out if there are any other modules that need to be configured to point to MySQL.

Depending on your application, there is a great chance that you don't need 90% of the modules listed in your ejabberd.cfg file. The most basic ones:

  • mod_roster_odbc
  • mod_offline_odbc
  • mod_register

For more ejabberd tips see:

http://www.quora.com/What-are-some-tricks-to-scale-ejabberd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!