Van Gale | 7 Apr 2004 19:32

Ejabberd scalability and clustering

I'm interested in ejabberd because I need better scalability than 
jabberd but have some questions before I start.

Can anyone give me some numbers of users handled at the bigger ejabberd 
site?

Also, are there any example configs around for a cluster serving a 
single domain?

Thanks,
Van

Alexey Shchepin | 8 Apr 2004 15:09

Re: Ejabberd scalability and clustering

Hello, Van!

On Wed, 07 Apr 2004 10:32:46 -0700, you said:

 VG> I'm interested in ejabberd because I need better scalability than
 VG> jabberd but have some questions before I start.

 VG> Can anyone give me some numbers of users handled at the bigger
 VG> ejabberd site?

At this moment on jabber.ru: 15k registered, 800 online, processor
load 5-7% (CPU 2.66GHz).

 VG> Also, are there any example configs around for a cluster serving
 VG> a single domain?

Configs are the same, you need only to setup mnesia [1].  I can write
step-by-step guide later.

[1] http://erlang.org/doc/r9c/lib/mnesia-4.1.4/doc/html/part_frame.html

Carter | 8 Apr 2004 17:39

How to start without SSL?

Hello,

I am simply attempting to test the eJabberD server without SSL. In an 
attempt to start the server without ssl I have removed

"{5223, ejabberd_c2s,     [{access, c2s},
				    {ssl, [{certfile, "./ssl.pem"}]}]},"

from the config file (the only reference to ssl I could find).

However, I still get a crash when the server attempts to start:

=CRASH REPORT==== 8-Apr-2004::11:24:48 ===
   crasher:
     pid: <0.197.0>
     registered_name: ssl_server
     error_info: {einval,[{erlang,open_port_prim,
                                   [{spawn,

"c:/PROGRA~1/ERL51~1.2/lib/ssl-2.3.5.1/pr
iv/bin/ssl_esock     "},
                                    [binary,{packet,4}]]},
                           {erl_open_port,open_port,2},
                           {ssl_server,init,1},
                           {gen_server,init_it,6},
                           {proc_lib,init_p,5}]}
     initial_call: {gen,init_it,
                       [gen_server,
                        <0.196.0>,
                        <0.196.0>,
(Continue reading)

Alexey Shchepin | 8 Apr 2004 21:37

Re: How to start without SSL?

Hello, Carter!

On Thu, 08 Apr 2004 11:39:40 -0400, you said:

 C> Hello, I am simply attempting to test the eJabberD server without SSL. In
 C> an attempt to start the server without ssl I have removed

[...]

 C> I have checked and c:/PROGRA~1/ERL51~1.2/lib/ssl-2.3.5.1/pr
 C> iv/bin/ssl_esock" does NOT exist, but why should it matter if I wish to run
 C> the server without SSL?

 C> Any pointers or tips would be great!

Try to remove line containing "ssl:start()" from src/ejabberd_app.erl.

Carter | 9 Apr 2004 20:37

Re: How to start without SSL?

Alexey,

Thanks for the SSL tip... I removed the line and recompiled and now I 
have a new error :(

The start up trace is a little confusing to me. Can you help me make 
sense of it?

begin trace:

=SUPERVISOR REPORT==== 9-Apr-2004::14:28:12 ===
      Supervisor: {local,ejabberd_sup}
      Context:    start_error
      Reason:     {'EXIT',{undef,[{stringprep,start_link,[]},
                                  {supervisor,do_start_child,2},
                                  {supervisor,start_children,3},
                                  {supervisor,init_children,2},
                                  {gen_server,init_it,6},
                                  {proc_lib,init_p,5}]}}
      Offender:   [{pid,undefined},
                   {name,stringprep},
                   {mfa,{stringprep,start_link,[]}},
                   {restart_type,permanent},
                   {shutdown,brutal_kill},
                   {child_type,worker}]

=ERROR REPORT==== 9-Apr-2004::14:28:12 ===
E(<0.39.0>:gen_mod:42): {noproc,{gen_server,
                                     call,
                                     [ejabberd_iq_sup,
(Continue reading)

Alexey Shchepin | 9 Apr 2004 22:17

Re: How to start without SSL?

Hello, Carter!

On Fri, 09 Apr 2004 14:37:59 -0400, you said:

 C> Alexey, Thanks for the SSL tip... I removed the line and recompiled and now
 C> I have a new error :(

 C> The start up trace is a little confusing to me. Can you help me make sense
 C> of it?

It seems stringprep support not compiled, try to explicitly run make in
src/stringprep directory and check if there are any errors.

Carter | 13 Apr 2004 20:42

Re: How to start without SSL?

Alexey,

Thanks so much for your help. I am in the process of testing my jabber 
client against ejabberd. So far my testing is going very well, however,I 
have noticed one thing that seems odd.

If I set the hostname attribute in ejabberd.cfg to my hostname and set 
in my client or JAJC  host as the hostname of the server I get an 
immediate dissconnect from the server. The same occurs if I set the host 
to the server IP on the client set the host to the server IP on the server.

However, if I set the hostname on the server to the IP and set the 
client to connect to the  host name (the actual namme of the machine) I 
connect without a problem. Also, if I switch it, setting the client to 
the IP of the host and the server config to the host name, I connect 
without a problem.

Does this make any sense to you?

- Carter Comunale

Alexey Shchepin wrote:
> Hello, Carter!
> 
> On Fri, 09 Apr 2004 14:37:59 -0400, you said:
> 
>  C> Alexey, Thanks for the SSL tip... I removed the line and recompiled and now
>  C> I have a new error :(
> 
>  C> The start up trace is a little confusing to me. Can you help me make sense
(Continue reading)

Alexey Shchepin | 17 Apr 2004 20:55

Re: How to start without SSL?

Hello, Carter!

On Tue, 13 Apr 2004 14:42:59 -0400, you said:

 C> Alexey, Thanks so much for your help. I am in the process of testing my
 C> jabber client against ejabberd. So far my testing is going very well,
 C> however,I have noticed one thing that seems odd.

 C> If I set the hostname attribute in ejabberd.cfg to my hostname and set in
 C> my client or JAJC host as the hostname of the server I get an immediate
 C> dissconnect from the server. The same occurs if I set the host to the
 C> server IP on the client set the host to the server IP on the server.

 C> However, if I set the hostname on the server to the IP and set the client
 C> to connect to the host name (the actual namme of the machine) I connect
 C> without a problem. Also, if I switch it, setting the client to the IP of
 C> the host and the server config to the host name, I connect without a
 C> problem.

 C> Does this make any sense to you?

Strange, try to check what JAJC send to/receive from server (afaik it is
displayed in JAJC in debug window).

逆 天行 | 20 Apr 2004 11:34
Picon
Favicon

ejabberd startup

configure and make success
but when I startup ,I get this:
------------------------------------------------------
exited: "invalid return value from ejabberd_app:start(normal,[]) -> 
{'EXIT',\n                                     {{case_clause,\n             
                             {error,\n                                      
        \"Not allowed to write in Mnesia dir\",\n                           

\"/home/phoenixi/Packages/Jabber/ejabberd/src/Mnesia.ejabberd <at> auth.phoenixtv.com\"}},\n 
                                     [{mnesia_bup,create_schema,2},\n       
                                {ejabberd_app,db_init,0},\n                 
                      {ejabberd_app,start,2},\n                             
          {application_master,start_it_old,4}]}}"
    type: temporary
-------------------------------------------------------
Could you help me ?
I install ejabberd in redhat 9

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

Mickael Remond | 20 Apr 2004 11:58

Re: ejabberd startup

On Tue, 20 Apr 2004 09:34:12 +0000, 逆 天行 <lxjde <at> hotmail.com> wrote:

> configure and make success
> but when I startup ,I get this:
> ------------------------------------------------------
> exited: "invalid return value from ejabberd_app:start(normal,[]) ->  
> {'EXIT',\n                                      
> {{case_clause,\n              
>                              {error,\n                                       
>         \"Not allowed to write in Mnesia  
> dir\",\n                                               
> \"/home/phoenixi/Packages/Jabber/ejabberd/src/Mnesia.ejabberd <at> auth.phoenixtv.com\"}},\n  
>                                      [{mnesia_bup,create_schema,2},\n        
>                                 {ejabberd_app,db_init,0},\n                  
>                       {ejabberd_app,start,2},\n                              
>           {application_master,start_it_old,4}]}}"
>     type: temporary

Do you have read-write right on the directory:

/home/phoenixi/Packages/Jabber/ejabberd/src/Mnesia.ejabberd <at> auth.phoenixtv.com

with the user you are launching ejabberd with ?

--

-- 
Mickaël Rémond
  http://www.erlang-projects.org/


Gmane