From 3078c28d1a99e391d369d40296373de15d059dfb Mon Sep 17 00:00:00 2001
From: Badlop ejabberd is a free and open source instant messaging server written in Erlang/OTP. ejabberd is cross-platform, distributed, fault-tolerant, and based on open standards to achieve real-time communication. ejabberd is designed to be a rock-solid and feature rich XMPP server. ejabberd is suitable for small deployments, whether they need to be scalable or not, as well as extremely big deployments. ejabberd is a free and open source instant messaging server written in Erlang. ejabberd is cross-platform, distributed, fault-tolerant, and based on open standards to achieve real-time communication. ejabberd is designed to be a rock-solid and feature rich XMPP server. ejabberd is suitable for small deployments, whether they need to be scalable or not, as well as extremely big deployments. ejabberd is:
@@ -268,12 +269,13 @@ Internal Authentication.
Released versions of ejabberd are available in the ProcessOne ejabberd downloads page:
@@ -458,25 +462,31 @@ for example:
To compile ejabberd on a Microsoft Windows system, you need:
We assume that we will try to put as much library as possible into Copy file Copy file Note: instead of copying libexpat.dll and iconv.dll to the Windows
+directory, you can add the directories
+ Remember that you must also install and enable the module mod_http_bind. If HTTP Bind is enabled, it will be available at
If HTTP Polling is enabled, it will be available at
Appendix A provides more details about internationalization and localization. Some ejabberd modules can be configured to require a CAPTCHA challenge on certain actions.
-If the client does not support CAPTCHA Forms (XEP-0158),
+If the client does not support CAPTCHA Forms (XEP-0158),
a web link is provided so the user can fill the challenge in a web browser. An example script is provided that generates the image
using ImageMagick’s Convert program. The configurable options are:
The following table lists all modules included in ejabberd. This module adds support for Service Discovery (XEP-0030). With
+ This module adds support for Service Discovery (XEP-0030). With
this module enabled, services on your server can be discovered by
Jabber clients. Note that ejabberd has no modules with support
-for the superseded Jabber Browsing (XEP-0011) and Agent Information
-(XEP-0094). Accordingly, Jabber clients need to have support for
+for the superseded Jabber Browsing (XEP-0011) and Agent Information
+(XEP-0094). Accordingly, Jabber clients need to have support for
the newer Service Discovery protocol if you want them be able to discover
the services you offer. Options:
This module implements XMPP over Bosh (formerly known as HTTP Binding)
-as defined in XEP-0124 and XEP-0206.
+as defined in XEP-0124 and XEP-0206.
It extends ejabberd’s built in HTTP service with a configurable
resource at which this service will be hosted. To use HTTP-Binding, enable the module:
This module adds support for Last Activity (XEP-0012). It can be used to
+ This module is an IRC transport that can be used to join channels on IRC
+servers. End user information:
+
+ Options:
+ Examples:
+ This module adds support for Last Activity (XEP-0012). It can be used to
discover when a disconnected user last accessed the server, to know when a
connected user was last active on the server, or to query the uptime of the
ejabberd server. Options:
@@ -2164,8 +2235,8 @@ connected user was last active on the server, or to query the uptime of the
iqdisc This module provides a Multi-User Chat (XEP-0045) service.
+ This module provides a Multi-User Chat (XEP-0045) service.
Users can discover existing rooms, join or create them.
Occupants of a room can chat in public or have private chats. Some of the features of Multi-User Chat:
This module enables optional logging of Multi-User Chat (MUC) public conversations to
HTML. Once you enable this module, users can join a room using a MUC capable
Jabber client, and if they have enough privileges, they can request the
@@ -2397,7 +2468,7 @@ Room details are added on top of each page: room title, JID,
author, subject and configuration.
This module implements offline message storage (XEP-0160).
+ This module implements offline message storage (XEP-0160).
This means that all messages
sent to an offline user will be stored on the server until that user comes
online again. Thus it is very similar to how email works. Note that
@@ -2539,8 +2610,8 @@ and all the other users up to 100.
...
]}.
This module implements support for XMPP Ping (XEP-0199) and periodic keepalives.
+ This module implements support for XMPP Ping (XEP-0199) and periodic keepalives.
When this module is enabled ejabberd responds correctly to
ping requests, as defined in the protocol. Configuration options:
This module implements Blocking Communication (also known as Privacy Rules)
as defined in section 10 from XMPP IM. If end users have support for it in
their Jabber client, they will be able to:
@@ -2589,26 +2660,26 @@ or subscription type (or globally).
Options:
This module adds support for Private XML Storage (XEP-0049):
+ This module adds support for Private XML Storage (XEP-0049):
Options:
This module implements SOCKS5 Bytestreams (XEP-0065).
+ This module implements SOCKS5 Bytestreams (XEP-0065).
It allows ejabberd to act as a file transfer proxy between two
XMPP clients. Options:
This module offers a Publish-Subscribe Service (XEP-0060).
+ This module offers a Publish-Subscribe Service (XEP-0060).
The functionality in mod_pubsub can be extended using plugins.
-The plugin that implements PEP (Personal Eventing via Pubsub) (XEP-0163)
+The plugin that implements PEP (Personal Eventing via Pubsub) (XEP-0163)
is enabled in the default ejabberd configuration file,
and it requires mod_caps. Options:
This module adds support for In-Band Registration (XEP-0077). This protocol
+ This module adds support for In-Band Registration (XEP-0077). This protocol
enables end users to use a Jabber client to:
This module implements roster management as defined in
-RFC 3921: XMPP IM.
-It also supports Roster Versioning (XEP-0237). Options:
+RFC 3921: XMPP IM.
+It also supports Roster Versioning (XEP-0237). Options:
This module adds support for logging end user packets via a Jabber message
auditing service such as
Bandersnatch. All user
@@ -2837,7 +2908,7 @@ To log all end user packets to the Bandersnatch service running on
...
]}.
This module enables you to create shared roster groups. This means that you can
create groups of people that can see members from (other) groups in their
rosters. The big advantages of this feature are that end users do not need to
@@ -2912,8 +2983,8 @@ roster groups as shown in the following table:
This module adds support for Statistics Gathering (XEP-0039). This protocol
+ This module adds support for Statistics Gathering (XEP-0039). This protocol
allows you to retrieve next statistics from your ejabberd deployment:
This module features support for Entity Time (XEP-0202). By using this XEP,
+ This module features support for Entity Time (XEP-0202). By using this XEP,
you are able to discover the time at another entity’s location. Options:
This module allows end users to store and retrieve their vCard, and to retrieve
-other users vCards, as defined in vcard-temp (XEP-0054). The module also
+other users vCards, as defined in vcard-temp (XEP-0054). The module also
implements an uncomplicated Jabber User Directory based on the vCards of
these users. Moreover, it enables the server to send its vCard when queried. Options:
ejabberd can map LDAP attributes to vCard fields. This behaviour is
implemented in the mod_vcard_ldap module. This module does not depend on the
authentication method (see 3.2.5). Note that ejabberd treats LDAP as a read-only storage:
@@ -3040,7 +3111,7 @@ all search results are reported. The default value is 30.
set the table that maps LDAP attributes to vCard fields. The format is:
[Name_of_vCard_field, Pattern, List_of_LDAP_attributes, ...].
Name_of_vcard_field is the type name of the vCard as defined in
-RFC 2426. Pattern is a
+RFC 2426. Pattern is a
string which contains pattern variables "%u", "%d" or
"%s". List_of_LDAP_attributes is the list containing LDAP
attributes. The pattern variables "%s" will be sequentially replaced
@@ -3182,8 +3253,8 @@ searching his info in LDAP. This module implements Software Version (XEP-0092). Consequently, it
+ This module implements Software Version (XEP-0092). Consequently, it
answers ejabberd’s version when queried. Options:
With the ejabberdctl command line administration script
+ With the ejabberdctl command line administration script
you can execute ejabberdctl commands (described in the next section, 4.1.1)
and also many general ejabberd commands (described in section 4.2).
This means you can start, stop and perform many other administrative tasks
@@ -3204,7 +3275,7 @@ and other codes may be used for specific results.
This can be used by other scripts to determine automatically
if a command succeeded or failed,
for example using: echo $? When ejabberdctl is executed without any parameter,
+ When ejabberdctl is executed without any parameter,
it displays the available options. If there isn’t an ejabberd server running,
the available parameters are:
ejabberd is an Erlang/OTP application that runs inside an Erlang runtime system.
+ ejabberd is an Erlang/OTP application that runs inside an Erlang runtime system.
This system is configured using environment variables and command line parameters.
The ejabberdctl administration script uses many of those possibilities.
You can configure some of them with the file ejabberdctl.cfg,
@@ -3313,7 +3384,7 @@ Starts the Erlang system detached from the system console.
Note that some characters need to be escaped when used in shell scripts, for instance An ejabberd command is an abstract function identified by a name,
+ An ejabberd command is an abstract function identified by a name,
with a defined number and type of calling arguments and type of result
that is registered in the ejabberd_commands service.
Those commands can be defined in any Erlang module and executed using any valid frontend. ejabberd includes a frontend to execute ejabberd commands: the script ejabberdctl.
@@ -3321,7 +3392,7 @@ Other known frontends that can be installed to execute ejabberd commands in diff
ejabberd_xmlrpc (XML-RPC service),
mod_rest (HTTP POST service),
mod_shcommands (ejabberd WebAdmin page). ejabberd includes a few ejabberd Commands by default.
+ ejabberd includes a few ejabberd Commands by default.
When more modules are installed, new commands may be available in the frontends. The easiest way to get a list of the available commands, and get help for them is to use
the ejabberdctl script:
The frontends can be configured to restrict access to certain commands.
+ The frontends can be configured to restrict access to certain commands.
In that case, authentication information must be provided.
In each frontend the AccessCommands option is defined
in a different place. But in all cases the option syntax is the same:
@@ -3417,7 +3488,7 @@ and the provided arguments do not contradict Arguments. As an example to u
{_bot_reg_test, [register, unregister], [{host, "test.org"}]}
]
The ejabberd Web Admin allows to administer most of ejabberd using a web browser. This feature is enabled by default:
a ejabberd_http listener with the option web_admin (see
section 3.1.3) is included in the listening ports. Then you can open
@@ -3489,13 +3560,13 @@ The file is searched by default in
The directory of the documentation can be specified in
the environment variable EJABBERD_DOC_PATH.
See section 4.1.2. If you enable mod_configure and mod_adhoc,
+ If you enable mod_configure and mod_adhoc,
you can perform several administrative tasks in ejabberd
with a Jabber client.
-The client must support Ad-Hoc Commands (XEP-0050),
+The client must support Ad-Hoc Commands (XEP-0050),
and you must login in the Jabber server with
an account with proper privileges. ejabberd uses the distributed Mnesia database.
+ ejabberd uses the distributed Mnesia database.
Being distributed, Mnesia enforces consistency of its file,
so it stores the name of the Erlang node in it (see section 5.4).
The name of an Erlang node includes the hostname of the computer.
@@ -3532,8 +3603,8 @@ mv /var/lib/ejabberd/*.* /var/lib/ejabberd/oldfiles/
You need to take the following TCP ports in mind when configuring your firewall:
epmd (Erlang Port Mapper Daemon)
+ epmd (Erlang Port Mapper Daemon)
is a small name server included in Erlang/OTP
and used by Erlang programs when establishing distributed Erlang communications.
ejabberd needs epmd to use ejabberdctl and also when clustering ejabberd nodes.
@@ -3569,7 +3640,7 @@ but can be configured in the file ejabberdctl.cfg.
The Erlang command-line parameter used internally is, for example:
The Erlang cookie is a string with numbers and letters.
+ The Erlang cookie is a string with numbers and letters.
An Erlang node reads the cookie at startup from the command-line parameter -setcookie.
If not indicated, the cookie is read from the cookie file $HOME/.erlang.cookie.
If this file does not exist, it is created immediately with a random cookie.
@@ -3583,7 +3654,7 @@ to prevent unauthorized access or intrusion to an Erlang node.
The communication between Erlang nodes are not encrypted,
so the cookie could be read sniffing the traffic on the network.
The recommended way to secure the Erlang node is to block the port 4369. An Erlang node may have a node name.
+ An Erlang node may have a node name.
The name can be short (if indicated with the command-line parameter -sname)
or long (if indicated with the parameter -name).
Starting an Erlang node with -sname limits the communication between Erlang nodes to the LAN. Using the option -sname instead of -name is a simple method
@@ -3592,7 +3663,7 @@ However, it is not ultimately effective to prevent access to the Erlang node,
because it may be possible to fake the fact that you are on another network
using a modified version of Erlang epmd.
The recommended way to secure the Erlang node is to block the port 4369. ejabberd stores sensible data in the file system either in plain text or binary files.
+ ejabberd stores sensible data in the file system either in plain text or binary files.
The file system permissions should be set to only allow the proper user to read,
write and execute those files and directories. A Jabber domain is served by one or more ejabberd nodes. These nodes can
be run on different machines that are connected via a network. They all
must have the ability to connect to port 4369 of all another nodes, and must
@@ -3628,29 +3699,29 @@ router,
This module is the main router of Jabber packets on each node. It
routes them based on their destination’s domains. It uses a global
routing table. The domain of the packet’s destination is searched in the
routing table, and if it is found, the packet is routed to the
appropriate process. If not, it is sent to the s2s manager. This module routes packets which have a destination domain equal to
one of this server’s host names. If the destination JID has a non-empty user
part, it is routed to the session manager, otherwise it is processed depending
on its content. This module routes packets to local users. It looks up to which user
resource a packet must be sent via a presence table. Then the packet is
either routed to the appropriate c2s process, or stored in offline
storage, or bounced back. This module routes packets to other Jabber servers. First, it
checks if an opened s2s connection from the domain of the packet’s
source to the domain of the packet’s destination exists. If that is the case,
the s2s manager routes the packet to the process
serving this connection, otherwise a new connection is opened. Suppose you already configured ejabberd on one machine named (first),
and you need to setup another one to make an ejabberd cluster. Then do
following steps: You can repeat these steps for other machines supposed to serve this
domain. ejabberd includes an algorithm to load balance the components that are plugged on an ejabberd cluster. It means that you can plug one or several instances of the same component on each ejabberd cluster and that the traffic will be automatically distributed. The default distribution algorithm try to deliver to a local instance of a component. If several local instances are available, one instance is chosen randomly. If no instance is available locally, one instance is chosen randomly among the remote component instances. If you need a different behaviour, you can change the load balancing behaviour with the option domain_balancing. The syntax of the option is the following: Several balancing criteria are available:
-
+ ejabberd 3.0.0-alpha ejabberd 2.1.0-alpha Installation and Operation Guide
@@ -144,80 +144,81 @@ BLOCKQUOTE.figure DIV.center DIV.center HR{display:none;}
Chapter 1 Introduction
1.1 Key Features
2.4.2 Download Source Code
Requirements
Compilation
C:\sdk\
to make it easier to track what is install for ejabberd.C:\sdk\erl5.6.5
).
+Install Erlang emulator (for example, into C:\sdk\erl5.5.5
).
C:\sdk\Expat-2.0.0
directory.C:\sdk\Expat-2.0.0\Libs\libexpat.dll
to your Windows system directory (for example, C:\WINNT
or
C:\WINNT\System32
)
-Note: instead of copying libexpat.dll to the Windows
-directory, you can add the directory C:\sdk\Expat-2.0.0\Libs
-to the PATH
environment variable.
+C:\sdk\GnuWin32
.C:\sdk\GnuWin32\bin\lib*.dll
to your
+Windows system directory (more installation instructions can be found in the
+file README.woe32 in the iconv distribution).C:\sdk\Expat-2.0.0\Libs
and
+C:\sdk\GnuWin32\bin
to the PATH
environment
+variable.
C:\sdk\OpenSSL
and add C:\sdk\OpenSSL\lib\VC
to your path or copy the binaries to your system directory.
C:\sdk\gnuWin32
. Copy
-C:\sdk\GnuWin32\bin\zlib1.dll
to your system directory.
+C:\sdk\GnuWin32\bin\zlib1.dll
to your system directory. If you change your path it should already be set after libiconv install.
set PATH=%PATH%;"C:\sdk\erl5.6.5\bin"
ejabberd\src
run:
@@ -493,7 +503,7 @@ There are two ways to register a Jabber account:
{acl, admins, {user, "admin1", "example.org"}}.
@@ -667,7 +677,7 @@ Handles incoming s2s connections.
Options: max_stanza_size
+(as defined in the Jabber Component Protocol (XEP-0114).
Options: access, hosts,
shaper, service_check_from
http://server:port/http-bind/
. Be aware that support for HTTP Bind
@@ -709,7 +719,7 @@ interesting to host a web-based Jabber client such as
embedded local web server
or Apache).
http://server:port/http-poll/
. Be aware that support for HTTP Polling
@@ -735,7 +745,7 @@ and you also want mod_http_bind to serve the URIs /http-bind/,
use this option: {request_handlers, [{["a", "b"], mod_foo}, {["http-bind"], mod_http_bind}]}
http://server:port/admin/
. Login and password are the username a
password of one of the registered users who are granted access by the
‘configure’ access rule.
3.1.8 CAPTCHA
3.3.1 Modules Overview
-Module Feature Dependencies
+mod_adhoc Ad-Hoc Commands (XEP-0050) mod_adhoc Ad-Hoc Commands (XEP-0050)
-mod_announce Manage announcements recommends mod_adhoc
+mod_caps Entity Capabilities (XEP-0115) mod_caps Entity Capabilities (XEP-0115)
-mod_configure Server configuration using Ad-Hoc mod_adhoc
+mod_disco Service Discovery (XEP-0030) mod_disco Service Discovery (XEP-0030)
-mod_echo Echoes Jabber packets
-mod_last Last Activity (XEP-0012)
-mod_last_odbc Last Activity (XEP-0012) supported DB (*)
+mod_muc Multi-User Chat (XEP-0045)
+mod_irc IRC transport
+mod_last Last Activity (XEP-0012)
+mod_last_odbc Last Activity (XEP-0012) supported DB (*) mod_muc Multi-User Chat (XEP-0045)
-mod_muc_log Multi-User Chat room logging mod_muc
-mod_offline Offline message storage (XEP-0160)
-mod_offline_odbc Offline message storage (XEP-0160) supported DB (*)
+mod_ping XMPP Ping and periodic keepalives (XEP-0199)
+mod_offline Offline message storage (XEP-0160)
+mod_offline_odbc Offline message storage (XEP-0160) supported DB (*) mod_ping XMPP Ping and periodic keepalives (XEP-0199) mod_privacy Blocking Communication (XMPP IM)
-mod_privacy_odbc Blocking Communication (XMPP IM) supported DB (*)
-mod_private Private XML Storage (XEP-0049)
-mod_private_odbc Private XML Storage (XEP-0049) supported DB (*)
-mod_proxy65 SOCKS5 Bytestreams (XEP-0065)
-mod_pubsub Pub-Sub (XEP-0060), PEP (XEP-0163) mod_caps
+mod_register In-Band Registration (XEP-0077)
+mod_private Private XML Storage (XEP-0049)
+mod_private_odbc Private XML Storage (XEP-0049) supported DB (*)
+mod_proxy65 SOCKS5 Bytestreams (XEP-0065)
+mod_pubsub Pub-Sub (XEP-0060), PEP (XEP-0163) mod_caps mod_register In-Band Registration (XEP-0077) mod_roster Roster management (XMPP IM) mod_roster_odbc Roster management (XMPP IM) supported DB (*) mod_service_log Copy user messages to logger service mod_shared_roster Shared roster management mod_roster or
- mod_roster_odbc
-mod_stats Statistics Gathering (XEP-0039)
-mod_time Entity Time (XEP-0202)
-mod_vcard vcard-temp (XEP-0054)
-mod_vcard_ldap vcard-temp (XEP-0054) LDAP server
-mod_vcard_odbc vcard-temp (XEP-0054) supported DB (*)
+mod_version Software Version (XEP-0092)
+mod_stats Statistics Gathering (XEP-0039)
+mod_time Entity Time (XEP-0202)
+mod_vcard vcard-temp (XEP-0054)
+mod_vcard_ldap vcard-temp (XEP-0054) LDAP server
+mod_vcard_odbc vcard-temp (XEP-0054) supported DB (*) mod_version Software Version (XEP-0092) 3.3.6 mod_http_bind
{modules,
@@ -2154,9 +2165,69 @@ To use this module you must enable it:
},
...
]}.
-
-3.3.8 mod_last
3.3.8 mod_irc
+ nickserver!irc.example.org@irc.jabberserver.org.
+
+ to nickserver!irc.example.org@irc.jabberserver.org.
+
+{modules,
+ [
+ ...
+ {mod_irc, [{access, all}, {default_encoding, "iso8859-15"}]},
+ ...
+ ]}.
+
{acl, paying_customers, {user, "customer1", "example.org"}}.
+{acl, paying_customers, {user, "customer2", "example.org"}}.
+{acl, paying_customers, {server, "example.com"}}.
+
+{access, irc_users, [{allow, paying_customers}, {deny, all}]}.
+
+{modules,
+ [
+ ...
+ {mod_irc, [{access, irc_users},
+ {host, "irc.example.net"}]},
+ ...
+ ]}.
+
3.3.9 mod_last
3.3.9 mod_muc
3.3.10 mod_muc
-3.3.10 mod_muc_log
3.3.11 mod_muc_log
<a href="/">Home</a>
.
...
]}.
3.3.11 mod_offline
3.3.12 mod_offline
3.3.12 mod_ping
3.3.13 mod_ping
3.3.13 mod_privacy
3.3.14 mod_privacy
-3.3.14 mod_private
3.3.15 mod_private
Using this method, Jabber entities can store private data on the server and
retrieve it whenever necessary. The data stored might be anything, as long as
it is valid XML. One typical usage for this namespace is the server-side storage
-of client-specific preferences; another is Bookmark Storage (XEP-0048).
+of client-specific preferences; another is Bookmark Storage (XEP-0048).
-3.3.15 mod_proxy65
3.3.16 mod_proxy65
3.3.16 mod_pubsub
3.3.17 mod_pubsub
3.3.17 mod_register
3.3.18 mod_register
-3.3.18 mod_roster
3.3.19 mod_roster
3.3.19 mod_service_log
3.3.20 mod_service_log
3.3.20 mod_shared_roster
3.3.21 mod_shared_roster
3.3.21 mod_stats
3.3.22 mod_stats
-3.3.22 mod_time
3.3.23 mod_time
-3.3.23 mod_vcard
3.3.24 mod_vcard
-3.3.24 mod_vcard_ldap
3.3.25 mod_vcard_ldap
3.3.25 mod_version
3.3.26 mod_version
-Chapter 4 Managing an ejabberd Server
-4.1 ejabberdctl
Chapter 4 Managing an ejabberd Server
+4.1 ejabberdctl
4.1.1 ejabberdctl Commands
4.1.1 ejabberdctl Commands
4.1.2 Erlang Runtime System
4.1.2 Erlang Runtime System
"
and {}
.
You can find other options in the Erlang manual page (erl -man erl).4.2 ejabberd Commands
4.2 ejabberd Commands
4.2.1 List of ejabberd Commands
4.2.1 List of ejabberd Commands
$ ejabberdctl help
@@ -3356,7 +3427,7 @@ This is not recommended for big databases, as it will consume much time,
memory and processor. In that case it’s preferable to use backup and install_fallback.
4.2.2 Restrict Execution with AccessCommands
4.2.2 Restrict Execution with AccessCommands
4.3 Web Admin
4.3 Web Admin
4.4 Ad-hoc Commands
4.4 Ad-hoc Commands
4.5 Change Computer Hostname
4.5 Change Computer Hostname
Chapter 5 Securing ejabberd
-5.1 Firewall Settings
Chapter 5 Securing ejabberd
+5.1 Firewall Settings
-
@@ -3544,7 +3615,7 @@ After you finish, remember to delete the temporary backup files from public dire
Port Description port range Used for connections between Erlang nodes. This range is configurable (see section 5.2). 5.2 epmd
5.2 epmd
erl ... -kernel inet_dist_listen_min 4370 inet_dist_listen_max 4375
-5.3 Erlang Cookie
5.3 Erlang Cookie
5.4 Erlang Node Name
5.4 Erlang Node Name
5.5 Securing Sensible Files
5.5 Securing Sensible Files
-Chapter 6 Clustering
Chapter 6 Clustering
-6.1 How it Works
6.1 How it Works
6.1.1 Router
6.1.1 Router
6.1.2 Local Router
6.1.2 Local Router
6.1.3 Session Manager
6.1.3 Session Manager
6.1.4 s2s Manager
6.1.4 s2s Manager
6.2 Clustering Setup
6.2 Clustering Setup
acl
’
and ‘access
’ options because they will be taken from
-first. If you installed mod_irc
, notice that it should be
+first; and mod_irc
should be
enabled only on one machine in the cluster.
6.3 Service Load-Balancing
6.3 Service Load-Balancing
-6.3.1 Components Load-Balancing
-6.3.2 Domain Load-Balancing Algorithm
6.3.1 Components Load-Balancing
+6.3.2 Domain Load-Balancing Algorithm
{domain_balancing, "component.example.com", <balancing_criterium>}.
When there is a risk of failure for a given component, domain balancing can cause service trouble. If one component is failing the service will not work correctly unless the sessions are rebalanced.
In this case, it is best to limit the problem to the sessions handled by the failing component. This is what the domain_balancing_component_number option does, making the load balancing algorithm not dynamic, but sticky on a fix number of component instances.
The syntax is the following:
{domain_balancing_component_number, "component.example.com", N}-
An ejabberd node writes two log files: +
An ejabberd node writes two log files:
The Debug Console is an Erlang shell attached to an already running ejabberd server. +
The Debug Console is an Erlang shell attached to an already running ejabberd server. With this Erlang shell, an experienced administrator can perform complex tasks.
This shell gives complete control over the ejabberd server, so it is important to use it with extremely care. There are some simple and safe examples in the article Interconnecting Erlang Nodes
To exit the shell, close the window or press the keys: control+c control+c.
-ejabberd includes a watchdog mechanism that may be useful to developers when troubleshooting a problem related to memory usage. If a process in the ejabberd server consumes more memory than the configured threshold, @@ -3751,7 +3822,7 @@ or in a conversation with the watchdog alert bot.
Example configuration: To remove all watchdog admins, set the option with an empty list:
{watchdog_admins, []}.-
The source code of ejabberd supports localization. The translators can edit the gettext .po files @@ -3786,9 +3857,9 @@ HTTP header ‘Accept-Language: ru’
Release notes are available from ejabberd Home Page
-Thanks to all people who contributed to this guide: +
Thanks to all people who contributed to this guide:
Ejabberd Installation and Operation Guide.
+
Ejabberd Installation and Operation Guide.
Copyright © 2003 — 2009 ProcessOne
This document is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
diff --git a/doc/guide.tex b/doc/guide.tex
index cc703fccc..f21af0e4e 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -720,11 +720,11 @@ other different modules for some specific virtual hosts:
\makesubsection{listened}{Listening Ports}
\ind{options!listen}
-The option \option{listen} defines for which addresses and ports \ejabberd{}
+The option \option{listen} defines for which ports, addresses and network protocols \ejabberd{}
will listen and what services will be run on them. Each element of the list is a
tuple with the following elements:
\begin{itemize}
-\item Port number. Optionally also the IP address.
+\item Port number. Optionally also the IP address and/or a transport protocol.
\item Listening module that serves this port.
\item Options for the TCP socket and for the listening module.
\end{itemize}
@@ -742,10 +742,12 @@ With the basic syntax the ports will listen on all IPv4 network addresses:
It is possible to specify the IP address for a port using the full syntax:
\begin{verbatim}
{{