Project

General

Profile

Dynamic virtual hosts

Dmitry Sidorov
Added over 3 years ago

Hello

Is it possible to manage dynamic virtual hosts, for example via MySQL database, but not in init.properties? We need live create and delete vhosts without restarting server. I found here: http://docs.tigase.org/tigase-server/7.0.0/Administration_Guide/webhelp/_virtual_hosts_in_the_tigase_server.html string "They can be put in the database and managed using ad-hoc commands" but no more information. And is it possible to use vhosts in cluster mode?

Thank you


Replies (3)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 3 years ago

Yes, yes and yes.

You can add vhosts directly in the database and Tigase will automatically refresh it's vhosts list after a while. Normally, however, you do not directly modify DB, instead you use ad-hoc admin commands via XMPP or REST API to modify vhosts list. And it does work very well in a cluster mode.

Added by Dmitry Sidorov over 3 years ago

Hello, Artur!

Where can i fund some docs aboud database structure for vhosts? I see only such tables:

broadcast_msgs

broadcast_msgs_recipients

msg_history

muc_history

short_news

tig_nodes

tig_pairs

tig_users

user_jid

xmpp_stanza

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 3 years ago

VHosts are stored in tig_pairs table. Format is described more or less in JavaDoc: http://docs.tigase.org/tigase-server/snapshot/javadoc/tigase/vhosts/VHostItem.html

I do not recommend to modify vhosts information directly in DB, instead, consider using admin ad-hoc commands.

    (1-3/3)