Multi-machine server
Quick question. I know some people use multiple machines to do different aspects of their servers.
1 to host mysql and world. one to host the zones. etc. I was wanting to tinker with this, i have an extra machine to toy with a bit. How would i go about setting up lets say 5 statics on this new machine, but interact with my main server and database? I'd have to copy zone.exe to the new machine, obviously. But are there any other files i need to copy there and any config i need to do? Thanks! |
you'l need db.ini, and the .cfg zone files, the spell file, the quest files and directories, ... basically anything but the LoginServer.ini file. You also need EMuShareMem, and a path to it.
You may also have to allow access to your DB from an other IP (the second machine), though i think this is enabled by default If world and db server are on the same first machine, change the IPs in the script that launches the second machine's zones to point to the first machine. Not sure if it works with windoze, but you might want to share your EQMu drive, so that updates are automatic i hope this helps (can't remember if i got tit to work anyway :/) |
Quote:
|
not sure of how Windoze looks for DLLs :( . You might want to copy EMuShareMem.dll to one of the system directories, to one of your directories listed in 'path' environnement variable, or just to the working directory of your launch script ...
You might find hints about this in some forum tutorial. |
place it in %SystemRoot% and open a command prompt.
Code:
cmd |
two minor opinions
Quote:
grant all privileges on * to MySQLuser@localhost identified by 'MySQLpass' with grant option; for example: grant all privileges on * to MySQLuser@'NewMachineIP1' identified by 'MySQLpass' with grant option; grant all privileges on * to MySQLuser@'NewMachineIP2' identified by 'MySQLpass' with grant option; etc etc for each of the other machines. Second, I verified you can just share your EQEmu directory in windows, because db.ini would not be overwritten it would contain the same data no matter what machine your on. Good luck and let us know how using multiple machines work, I have 6 at home on the local network would be a blast to remove some of the CPU utilization to other non-load bearing systems. Darkwaters |
hey one more thought about bootzones.bat
Quote:
Make certain that all machines used have the same Username/Password for Login to Windows otherwise you may run into security issues that were or were not expected. This was a great idea sotonin. Darkwaters PS you could still share out the EQEmu directory because again this would not change from machine to machine. |
I don't use windows. i use linux. so most of that is wasted on me. lol =)
so im back to the point of how to tell it to look for the dll's and such also i don't think the above posted boot5 will work... our linux run file is similar to a boot5 but it only tells which zones to boot up on THAT machine.... you can't boot a zone from one machine on another. You'd have to have a seperate zone bootup script on the second machine i beleive. I'm just not sure how they all know to interconnect ( our script to load zones is set up like this. Code:
./zone.exe gukbottom IP PORT IP >> /dev/null & I'll give this a shot. but i don't know still how they interconnect =p |
bash shell :
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/EmuSharemem.so_directory |
Quote:
Code:
./zone.exe gukbottom ExtIP PORT IntIPMach1 >> /dev/null & Code:
./zone.exe gukbottom ExtIP PORT IntIPMach1 >> /dev/null & It's been awhile like back on slakware version 2 since I've really dev'd on a linux server. Yes I'm that old LMAO. I mostly admin 11 O/S's and program primarily in Windows and OS400 (IBM AS400). You'll have to static a few zones per machine or all zones per one machine, ONLY IF your making all zones static or just a few zones static at which point you'd need to add something like the following code snippet. Code:
./zone.exe gukbottom ExtIP PORT IntIPMach1 >> /dev/null & Quote:
It doesn't take up that much room so it really shouldn't be a prob especially since the actual code is NFS mounted the minor pathing, scripts etc wouldn't run into a space consumption or network bottleneck issue. Just make certain you have permissions and follow the procedure you used to setup your initial server. I promise you'll be very happy you did in the end. Maintenance becomes one NFS mounted directory for updates and only your server for the db possibly change of IP addresses as needed (if needed). You've got me interested enough to throw together a linux server on my local network. I'll hunt down the install sticky in the forum and test it out. Let me know how things go, wish I was a part of this one LOL. Darkwaters |
the internal ip that you are trying to use wont work in my case. the two servers arent on the same network.
|
Wow bro your killing me LOL j/k. =)
So can you elaborate and just give me a general idea of your network config? I'm a systems, networking, programming, database guru/junkie, if I can make more suggestions I will, after seeing an example (no need for actual IP's just something relatively close to the real deal will do). If you just want to toss the networking topology in a network schematic I can deal with it too. =) Anyhoot just curious and love to help cuz you've got a great idea and would love to see it working for you. Darkwaters |
soto it's ./zone.exe worldip port zonemachineip >> /dev/null &
|
Kewl deal ty for that post wize_one I'm about to try this out myself just for the chance to say I did it =)
Darkwaters |
nice. its not gonna work anyways my second linux box doesnt have the right shit installed on it apparently craps out when trying to run zone =\
|
it's best to compile code (for zone and EmuSharedMem) on each machine, unless both have exact same configuration (same distrib, same version, same packages and libraries installed).
|
thanks smogo,
Nice catch I was a bit tired last night when I made that post. Darkwaters |
they are very similar. but ya. i don't feel like trying to fucking get all the right shit installed on this machine, so oh well. heh
|
HEHE yeah I get about that frustrated at times myself Sotonin. =)
Take a break come back later or maybe I can help out by duping two systems here at home and trying it out. Darkwaters |
naw it doesn't matter. i'm sure if zone would run on the second machine it would work fine. but i don't wanna dick with installing all the needed stuff. not that important to me )
|
No problem just bored off my ass and trying to find somewhere to be of assistance.
Darkwaters |
All times are GMT -4. The time now is 06:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.