[Spread-users] High in traffic

Mikkel Kruse Johnsen mkj.lib at cbs.dk
Tue Oct 25 09:15:05 EDT 2005


Hi All

I have for almost 2 years been running Spread, Apache, mod_log_spread
and spreadlog on a web system we have here at CBS (Copenhagen Business
School, Denmark).

Everything is running fine, but in April 2005, we began to see that the
in traffic for our servers (servers part of spread) became higher then
the our traffic. And it has gone up since then. It is starting to worry
me alot.



My config is as follows: /etc/spread.conf
-----------
DebugFlags = { PRINT EXIT }
EventLogFile = /var/log/spread/spread.log

RuntimeDir = /var/run/spread

Spread_Segment 224.0.0.1:4803 {
        meranti.cbs.dk  130.226.47.154
        mubangu.cbs.dk  130.226.47.155
        mandio.cbs.dk   130.226.47.157
        muhuhu.cbs.dk   130.226.47.158
}
--------------
The same on all servers.


The only difference that I have made is to compile Spread as a RPM
package and made the libspread.so dynamick like this.
---------------
...
rm $RPM_BUILD_ROOT%{_libdir}/libspread.so*
libtool --mode=compile gcc -g -O -c alarm.c
libtool --mode=compile gcc -g -O -c events.c
libtool --mode=compile gcc -g -O -c memory.c
libtool --mode=compile gcc -g -O -c sp.c
libtool --mode=link gcc -g -O -o libspread.la alarm.lo events.lo
memory.lo sp.lo -rpath %{_libdir} -lnsl -version-info 1:0:0
libtool --mode=install install -c libspread.la $RPM_BUILD_ROOT
%{_libdir}/libspread.la
...
---------------
See atached file for full SPEC file.



Anyone has any idea why my in traffic could be so high. ?



Versions:
All four servers is running RedHat Enterprise 4 (with all the latest
updates)

Spread: 3.17.3-5.rh4AS
Apache: 2.0.52-19.ent
mod_log_spread: 20030930-12.rh4AS
spreadlogd: 1.4.2-10.rh4AS


/Mikkel
-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.spread.org/pipermail/spread-users/attachments/20051025/03663d68/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mandio.cbs.dk.eth0.all.png
Type: image/gif
Size: 19203 bytes
Desc: not available
Url : http://lists.spread.org/pipermail/spread-users/attachments/20051025/03663d68/attachment.gif 
-------------- next part --------------
%define initdir    /etc/init.d
%define servicedir /etc/service.d
%define sysconfdir /etc
%define logdir     /var/log/spread
%define spreaddir  /var/lib/spread

%define platform        %(release="`rpm -q --queryformat='fc%{VERSION}' fedora-release 2>/dev/null`"; if test $? != 0; then release="`rpm -q --queryformat='rh%{VERSION}' redhat-release 2>/dev/null`"; if test $? != 0; then release=""; fi ; fi; echo "$release")

Summary:	Spread is a toolkit that provides a high performance messaging service
Name: 		spread
Version: 	3.17.3
Release: 	5.%{platform}
URL: 		http://www.spread.org
Source0: 	%{name}-src-%{version}.tar.gz
Source1: 	spread.init
Source2: 	spread.run
Source3: 	spread.log
License: 	OpenLDAP
Group: 		System Environment/Daemons
BuildRoot: 	%{_tmppath}/%{name}-root
Requires:       daemontools >= 0.76
Requires:       supervise-scripts >= 3.4

%description
Spread is a toolkit that provides a high performance messaging service
that is resilient to faults across external or internal networks. Spread
functions as a unified message bus for distributed applications, and
provides highly tuned application-level multicast and group communication
support. Spread services range from reliable message passing to fully
ordered messages with delivery guarantees, even in case of computer
failures and network partitions.

%package devel
Summary: 	Spread is a toolkit that provides a high performance messaging service
Group: 		Development/Libraries
Requires: 	%{name} = %{version}-%{release}

%description devel
Spread is a toolkit that provides a high performance messaging service
that is resilient to faults across external or internal networks. Spread
functions as a unified message bus for distributed applications, and
provides highly tuned application-level multicast and group communication
support. Spread services range from reliable message passing to fully
ordered messages with delivery guarantees, even in case of computer
failures and network partitions.


%prep 
%setup -q -n %{name}-src-%{version}

%build
./configure --sysconfdir=%{sysconfdir} --prefix=%{_prefix} --mandir=%{_mandir} --with-mantype=man --with-pid-dir=/var/run
make all

%install
rm -rf $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} mandir=$RPM_BUILD_ROOT%{_mandir}
install -d -m 755 $RPM_BUILD_ROOT/var/run/spread

install -d -m 755 $RPM_BUILD_ROOT%{initdir}
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/spread

install -d -m 755 $RPM_BUILD_ROOT%{servicedir}/spread
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{servicedir}/spread/run

#install -d -m 755 $RPM_BUILD_ROOT%{servicedir}/spread/log
#install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{servicedir}/spread/log/run

install -d -m 755 $RPM_BUILD_ROOT%{logdir}
install -d -m 755 $RPM_BUILD_ROOT%{spreaddir} 

rm $RPM_BUILD_ROOT%{_libdir}/libspread.so*
libtool --mode=compile gcc -g -O -c alarm.c
libtool --mode=compile gcc -g -O -c events.c
libtool --mode=compile gcc -g -O -c memory.c
libtool --mode=compile gcc -g -O -c sp.c
libtool --mode=link gcc -g -O -o libspread.la alarm.lo events.lo memory.lo sp.lo -rpath %{_libdir} -lnsl -version-info 1:0:0
libtool --mode=install install -c libspread.la $RPM_BUILD_ROOT%{_libdir}/libspread.la

%pre
/usr/sbin/useradd -r -s /sbin/nologin -d %{spreaddir} spread 2>/dev/null || :

%post
/sbin/chkconfig --add spread
/sbin/ldconfig

%preun
if [ $1 = 0 ]; then
        /sbin/chkconfig --del spread
fi

%postun
if [ $1 = 0 ]; then
        /usr/sbin/userdel spread 2>/dev/null || :
fi
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %{servicedir}/spread
%{servicedir}/spread/run
#%dir %{servicedir}/spread/log
#%{servicedir}/spread/log/run
%{initdir}/spread
%config(noreplace) /etc/spread.conf
%attr(750,spread,spread) %dir /var/run/spread
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_sbindir}/*
%{_mandir}/man1/*
%attr(2700,spread,spread) %dir %{logdir}
%attr(-,spread,spread) %dir %{spreaddir}

%files devel
%defattr(-,root,root)
%{_includedir}
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/lib*.so
%{_mandir}/man3/*

%changelog
* Tue Oct 14 2003  <mikkel at linet.dk>
- Added /dev/null to the run script (forgot last time)

* Tue Sep 23 2003  <mikkel at linet.dk>
- Added daemontools startup scripts, logging don't work.

* Sun Oct 20 2002  <mikkel at linet.dk>
- Initial build.


More information about the Spread-users mailing list