Multiple PCs Running Zone Servers
First let me say that I have searched for this in the past and have found some information, but it wasn't nearly enough to get this running properly. I have only seen people post their config files, but from what I can tell so far, it seems like it takes much more than that to get this working properly. I experimented around quite a bit the other night and could not get this working the way I wanted.
What I want is to have my Server PC run all zones dynamically with the exception of a few zones that I want to run on a secondary PC statically. So, I assume that I set the launcher_zones table to look like: (Using navicat btw) launcher | zone | port zone | potimeb | 7250 zone | veeshan | 7260 zone | solrotower | 7270 I have my router to forward ports 7000 - 7249 to my Server PC and ports 7250 - 7500 to my Secondary PC. So, setting the launcher to these ports should send those zone requests to the Secondary PC (at least I think). Do I need to open any other ports to allow this, or does it communicate directly PC to PC on my LAN via the router? That is what I would imagine anyway. I only have the zone server ports and port 9000 forwarded atm. Do I need to open 3306 or 9080 or anything? And here are the config files I was trying. Server PC Config (IP 192.168.1.101): Code:
<?xml version="1.0"> Code:
<?xml version="1.0"> Next, I started the server from the server PC, but waited to hit <any key> to start zones loading until it was fully loaded on the Server PC and after I started zone.exe on the Secondary PC. I then hit the spacebar on the Server PC to start the dynamic zones all loading. It seems like the results I am getting are that I can't zone to other zones and after trying multiple configs and setups, it seemed like it kept making the zones I set to load statically load with a dynamic port instead. I am guessing that is because it wasn't able to connect to the secondary zone server so it just loaded them dynamically. Does anyone here know exactly what it takes to set one of these up the way I want? I have been able to get it to load all zones on the secondary PC, but I can't get it to split zones between the 2 PCs. I would MUCH appreciate if someone could provide a nice list of steps or walkthrough/guide on setting this up properly. Or if there is a post or wiki about it that someone knows of, I would appreciate being pointed in the right direction. I know most of the preferred servers run multiple zone servers. If one of you guys see this and wouldn't mind telling me what I did wrong, that would be awesome! Thanks in advance! Oh, and here is a PM from Aramid that might give more info on what he found when testing this out. Quote:
|
But it WORKS on my test servers... Did you load up the Web Templates in EQEMU and look at what ports it was loading the zones up in and then forward your router accordingly?
It takes some time for ALL of the zones to get fully loaded, so be patient for them all to appear. This is what I did and also found that I had to forward the UDP ports with the same ranges, why I don't know. I am using an RV082 LinkSys router and until I did, I still could not connect to a zone on the ZONE only server. After I got it working, I shut it all down and restarted it and the port forwarding held true and I was able to access all of the zones I had loaded up. I am beginning to think that you don't need to set ports in the 7000 range on the Zone only server because they are used by WORLD , not zone. It says it right there in the config file. ie:<!-- Sets port range for world to use to auto configure zones --> |
Ya, I think the setting in the config file is just the max port range you want set for dynamic zones to have access to.
So, does anyone know if the players connect directly to the secondary zone server PC, or do they go through the main server that is running the world to get there? I did notice that zones were being loaded on other ports besides the 7000 range. I think most of them were in the 2000 range when actually loaded. So, in order to set this up properly, I need to forward the 2000 range ports that I see in the templates to my secondary server in my router config? Or are those 2000 ports something else that can be ignored? Sorry if I am over-complicating this lol. I just don't want to have my server down for a couple hours again working on this tonight. Trying to verify as much as I can before I start messing with it again. Does anyone know exactly how this works and how to get it setup? I don't want to have sloppy configs or open up extra ports that don't need to be opened. |
One more time...
Did you look at the ZONES in the EQEMU Web Templates to see what PORTS to Forward on your router? |
Sorry Aramid, lol. Just trying to get as much info as I can before trying the changes again. I don't like having the server down for a long period of time while I mess with this stuff. I would like to get it right on the first try (well this time anyway).
I tried opening up the templates, but they all show some weird errors and don't display properly. Do I need to have something special configured or running to get them to work? I tried opening up port 9080 to see if that made a difference, but I don't see any. Do I have to access it from another machine for it to work or something? I have some Apache and PHP stuff setup on this PC, but that doesn't seem to make them work either. I have tried loading them in IE and Firefox, but both get the same issues. I didn't see any kind of config file to mess with. It seems like the templates are calling to use perl, but perl isn't working for them. Any ideas? Also, my router lets me forward TCP or UDP packets or both. I just set them all to both. |
So, I have tried using http://localhost:9080 to get to my server and it prompts me to login. But, no matter what login I try to use, it isn't working. I have tried accounts on my server and accounts for my database, but none work.
|
Quote:
Doing it now will let you SEE what I am talking about. You will be able to see what 7000(s) ports are being used now. Same will be when you install 2nd server. All Launchers will show up under Zones. Remember, this is Zones from the menu on the left, not under the Launcher which will give you the port number it was launched from.. which I don't know why they don't remain the same, but they don't. |
To rewind, what is the name of the launcher you use to load the dynamic zones? Is it also zone?
|
I believe that all of the launchers are zone. As far as I know, when setting a static zone the launcher_zones has to have "zone" set in it. And I am pretty sure it uses the same one for dynamics by default. But, it looks like you can set the launcher in the confix xml file.
And, I have been trying to login to my server through the browser, but it won't let me in even if I use my highest status account which is set to 250 status. I don't have a clue why. |
Quote:
You can change the name of zone to anything you want. Then just change your startup to eqlaunch.exe NOFLYZONE or whatever you name it. You would have to use different ZONE names for the 2 servers or else they will both try to load up the SAME zones. This is why I named mine ZONEW (World Server Zones) and ZONEZ (Zone Server Zones). Quote:
Did you go into your DATABASE and enter a PASSWORD in the PASSWORD field for this account? This has nothing to do with Game Login... Look at your account in the DB and see if you have a Password set. |
Well, I am learning something new with every post you make, LOL!
Ya, I am using the batch file setup from the wiki server setup guide: Code:
@echo off Code:
@echo off Code:
start eqlaunch.exe zonez So, if I set a password in the database for my admin account with status 250, will it still let me log in through the login server? I would think it should as long as the passwords both match. Otherwise, I could just create a new account with status 250 just for the web interface access. Thanks again for all of your help on this Aramid! By the time I get this all setup I will have plenty of new knowledge and understanding of how this all works. I can't believe I never looked into setting up the templates to work. They seem like a really cool feature! |
Yes on the batch files.
Yes on the eqlaunch from the zone only server, just remember to change the name in the launcher table, in the DB as well, not just in the .bat file. ZoneW would have the 5 for the 5 dynamic zones and zonez would have a 0 for no dynamic zones. Then in launcher_zones table, you enter the zonez name and the zones you want to load statically and the startup port, which apparently ends up having nothing to do with port forwarding on your router. Forward the ports as they show up in the Templates ZONES page. Start your World Server 1st and let it load it's zones, then when it is completely up and running, start the Zone Only Server. You can only run WORLD on 1 Server, not both unless you are going to run a seperate EMU Server. Eqlaunch is what launches the zones, I do believe it is required.... Yes, you can still use the Account to login and play the game as the login server only passes the LS ID #, not the password, so they do NOT have to match. |
OK, I finally got everything to work accept for 1 thing. I can't figure out how to set my zone server to map to the quest directory on my world server.
Here is the snippet from the config file that I would think should set the mapping: Code:
<!-- Directory locations. Defaults shown --> Thanks again for all of your help Aramid! I certainly couldn't have gotten this working without you. My players will owe you thanks as well :) Also, the whole thing about the port settings in the zone_launcher is confusing and annoying. Like you said, the port settings there seem to have no effect at all on what ports the zones load on. They load in the order that they are started starting at whatever port number you have set in the world server config. I set mine up a little different than the way you did. I was running into an issue that way. I have 45 dynamic zones set to load on my world server and it takes so long to load them all that I get players logging into them before they are all up. This causes a problem if players load into one of the zones that are set dynamic on the zone server, because it will load a dynamic version when players log in, and then load the static one when I start the launcher on the zone server. So, to get around this, I had to set my static zones for the zone server on ports 7000-7004 and change all of my settings accordingly. Then, I set the world server to 7005-7050. This way, I start the launcher on the zone server first and THEN start the world server up. So, when it first starts, it loads the statics immediately. Then I hit a key to start the dynamic zones loading on the world server. So far it seems to be working ok. If I can figure out this last issue with the quests, I will try to write up a guide to help people get these setup in the future, since everything I could find was little to no help with getting this setup properly. Heck, maybe I will stick it in the wiki if I can get that figured out. Haven't ever messed with updating a wiki before lol. Thanks again for the help Aramid! I certainly couldn't have gotten this to work without you. My players will owe you thanks as well! |
I didn't even try to use one area for the quest, I have them on both servers, as this too would probably help keep the load balanced, unless it's world that's running all the quests anyway. Coders will have to let us know if the code allows for drive changes to the locations or just folder/directory changes.
If you get the Templates running, you can start up your world and then LOCK it via the Templates OR, make it LOCKED by default on boot up and then UNLOCK it when all the ones are up. Glad I was able to help you get it up and running. |
Well, nexus crashed and for some reason restarted on 7050 which made the zone unreachable. I don't know why it would restart on another port when port 7002 was still available...
Code:
delveb (delveb) 7000 Players View Log Restart - Kill |
All times are GMT -4. The time now is 03:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.