[prev in list] [next in list] [prev in thread] [next in thread] 

List:       intermezzo-devel
Subject:    Re: (no subject)
From:       Alexander Piavka <piavka () cs ! bgu ! ac ! il>
Date:       2003-01-22 15:07:03
[Download RAW message or body]


 Hi sorry for the late reply, i just had more serious problem with
intersync which made to give up on intermezzo for a while since i just
didn't work properly even for basic thing, or it is me who had
configured it wrong, i don't know which since it is in development state.
I don't know if the problem is mine or intersync is not work for basic
things. Also the homepage is very confusing, i spent a lot of time of time
to figure what should i down load and there is the correct documentation
for version of intermezzo/intersync i have downloaded. Maybe you can
update the site to make things more clear.

ps. please try to answer as much of my questions as you can, thanks

 Regarding this patch, i have not tried it but before i try i'd like to
make one thing clear to me before that. The file \
/var/intermezzo-0/intersync-httpd.conf which get overwritten each time intersync is \
restarted does not contain directives which control the number of httpd processes \
like: MinSpareServers 1
MaxSpareServers 2
StartServers 2
also i've noticed that the number of intersync processes is the same as
httpd processes, so i think that maybe i can't add the above directives to
/var/intermezzo-0/intersync-httpd.conf, since each child instance of
intersync needs a separate httpd child instance, i.e each intersync
instance has persistant connection to each httpd child. And since
apache1.3 forked child can handle only once connection each time
there is a need that unber of intersync processes is equal to number
of httpd processes. Is it so ????????
I the above true then i cannot add the above apache directives, thus the
patch is useless for me. And then what i'm intesrested is reducing the
number of intersync processes, this will automatically reduce httpd processes.
If so can the number intersync process be reduced ???????
Also can inersync work with apache2.0 ???????


 Now about the more serious problems i have faced. I made a setup of 3 hosts
on H1 i setup intersync server. And on H2 and H3 i've set intersync
clients of H1. Now the problem is like this:
If H2 creates/updates a file on intermezzo fs, H1 and H3 are
updated fine> If now H2 (and H1)continues to update file all works fine.

But as soon as H3 creates/updates a file, the intersync process on H2
exits(or fails) and the intermezzo fs does not get updated, it updates the
files localy(the changes are not propagated to H1 and H3, which is obvious
since intersync client is not running). Why this happens? the update of
the intermezzo fs by H2 and H3 are not even simultaneous.
I can provide my configuration if you need, just tell me what you need to
check the problem. Is this my problem only, or this is how the current
implementation of interync works???????
Because of this probelem the intermezzo is completly useless for me, since
to avoid this problem i can have only one server and once client only.

Also can intermezzo have two intersync servers for the same
intermezzo fs(i.e. which are syncronized)??????
i need this for high availability, so that if one server fails it does not
affect the clients in any way, since there is stil another server running.
There is nothing i have found in documentation on how to configure two or
more interync servers.

Now if i make changes localy on H2, and the i restart intersync all the
changes on H2 are lost. Is there any tool availibale to reintegrate the
changes? and how to use it?

 Thanks a lot.

> Hi,Alexander:
> Here is the proposed patch for the problem.It adds a file exist test in the \
> execution flow. Try it and tell me the result. Thanks.
> 
> --- intersync.c.orig	2003-01-13 01:02:06.000000000 +0800
> +++ intersync.c	2003-01-13 01:16:14.000000000 +0800
> @@ -110,6 +110,19 @@
> }
> }
> 
> +static int config_file_not_exist(char *configfile)
> +{
> +        int fd ;
> +
> +        fd = open(configfile,O_RDONLY);
> +
> +        if (fd>0) {
> +                close(fd);
> +                return 0;
> +        }
> +        else
> +                return 1;
> +}
> 
> static void start_server(char *docroot, char * ip, int port)
> {
> @@ -143,7 +156,8 @@
> 
> pidfile = g_strdup_printf("%s/httpd.pid", docroot);
> configfile = g_strdup_printf("%s/intersync-httpd.conf", docroot);
> -        config_apache_conf(configfile, ip, port, docroot, IS_CGIDIR);
> +        if(config_file_not_exist(configfile))
> +                config_apache_conf(configfile, ip, port, docroot, IS_CGIDIR);
> 
> sigact.sa_handler = signal_server;
> sigfillset(&sigact.sa_mask);
> 
> 
> 
> > 
> > Chen Yang,
> > 
> > This is a rather simple fix to now always overwrite the existing conf
> > file.  I have filed this as a bug to be fixed on
> > bugzilla.inter-mezzo.org.  Chen Yang, can you get an account on that
> > bugzilla there asap?
> > 
> > Thanks!
> > 
> > - Peter -
> > 
> > 
> > 
> > On Tue, Dec 24, 2002 at 08:55:13PM +0200, Alexander Piavka wrote:
> > > 
> > > the file /var/intermezzo-0/intersync-httpd.conf is overwriten each time i
> > > restart the intersync daemon. I would to add the following to \
> > > intersync-httpd.conf: MinSpareServers 1
> > > MaxSpareServers 2
> > > StartServers 2
> > > 
> > > since there are just too much many instances (7) of apache runing.
> > > I tried to change the /var/intermezzo-0/intersync-httpd.conf file directly
> > > but it is overwriten each time with default configuration.
> > > Is it possible to do it, or this is not controlled from
> > > /var/intermezzo-0/intersync-httpd.conf, since probably each forked( or
> > > threaded?) instance of intersync is connecting to apache(i see that
> > > there are same number of apaches and intersyncs). If so then is it
> > > possible to reduce the number of intersync processes/threads?
> > > 
> > > ps. does intersync deamon forks so many processes or these are just
> > > threads?
> > > 
> > > Thanks a lot.
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > intermezzo-discuss mailing list
> > > intermezzo-discuss@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/intermezzo-discuss
> > - Peter -
> > 
> > 
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > intermezzo-devel mailing list
> > intermezzo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/intermezzo-devel
> > 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: Thawte.com
> Understand how to protect your customers personal information by implementing
> SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
> Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
> _______________________________________________
> intermezzo-devel mailing list
> intermezzo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/intermezzo-devel
> 


 Piavlo XanderAl
 BGU CS Lab Evil Admin



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
intermezzo-devel mailing list
intermezzo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/intermezzo-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic