hi all, I have a socet script i want to split into n childs... so if someone
enterd the parent, its conecting with one of the child's port:
(5001/5002/5003...) (in ramdomize or loop or whatever)
cheme:
-------
(tcp - income)
---->->->---
|user1 conecting p:5000
|user2 conecting p:5000
|user3 conecting p:5000
|user4 conecting p:5000
|
############# conecting user1 with 5001
# parent # conecting user2 with 5002
# p:5000 # conecting user3 with 5003
############# conecting user4 with 5001
/ | \
/ | \ ------------------------------------ inf: how many
users
/ | \ are currently in
the C-server
/ | \
######### ######### ######### C1.. are the aplication server
# C1 # # C2 # # C3 # getting and posting informations
# p:5001# # p:5002# # p:5003# between the user and the databases
######### ######### #########
\ | /
\ | /
\ | /
\ | /
################## This is the Pool of all aplicatons
# aplication and # and databases
# databasees / #
# documents and #
# pages --- POOL #
##################
this is the simple setup i want to realise. The aplicationpool stores on
many mashines. and i need to split the aplication-servers for a better
performance, maybe on diffenent mashines.
does anyone has a hint for me, how i can realise this ? my problm is to keep
the parant cleen and available and make some chiles. I've seen a simular
mechanism in the intershop server, that handles n Aplication server but i
have realy no idea.. mybe you can give me a hint of forking processes, or
how do i start a conection and return emetatly.
I've done simple pre test with fork:
-----------
while($pid = fork)
{
$i++;
print "$i\t$pid\n";
while(1)
{
sleep(10);
last;
}
}
exit;
-----------
but it does wait while it sleeps. I've always done while(1){ $pid = fork;,
but its always waiting while the child is finish. So if i replace the
sleep() comand to the socent lisening, it waits while one is finished.
hmmm????
please, if you have some examples, too please send me a few lines of it.
thanx a lot
Kris
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web