Server Config Setting to Assign Port Ranges Per Zone Server
The idea is to have a configuration setting to specify which ports to use for which zone server all in the World Server config. This is so the World Server knows which ports to use when loading dynamic or static zones on separate zone server, and so you can define clearly separate port ranges for each.
The new settings would look something like this: Code:
<zones> I am not a coder at all, so I don't know how hard it would be to get this change working. I think this would make setting up extra zone servers very simple. As it is now, the only way I can see multiple zone server working without any flaws are if you are running them on 2 completely separate networks with separate internet connections and IPs to allow for overlapping port ranges, or to have zones that never ever crash (unlikely). My understanding of how ports work with multiple zone servers currently: Basically, the world server will boot up zones on the first port available as defined in the config on the World Server PC here: Code:
<zones> So, now everything is up and working properly. Everything can work perfectly this way as long as no zones crash. If there is a crash, there is a likely chance that zones will start loading on the wrong ports of the zone and/or world server. This causes the zones to be unavailable to players. I have a post in the support forum for trying to get this working properly, but I have come to the conclusion that it can't unless you have a separate network or some kind of port spoofing to let both PCs use the same ports. If anyone can figure out how to make this change, I think it would be very useful. But I would gladly accept any corrections if there is a way to set this up without having issues that I am somehow missing. |
I am definitely no coder, but I am hoping to start learning more about it soon. I normally learn pretty quickly, but it looks like teaching myself how to write source is gonna take a while. Either way, I wanted to post some sections of the source that I think might need to be looked at to make a change in the way ports are loaded to multiple zone servers.
Again, I am not a coder, so this could all be completely irrelevant, but it is the stuff that stands out to me as being related to setting up zones on ports. Note that I only added in the sections from these files that I think might be related, so if it looks like something is missing, it is probably because I didn't know to copy it in here: EQLConfig.cpp Code:
if (database.RunQuery(query, MakeAnyLenString(&query, Code:
std::vector<LauncherZone>::iterator cur, end; LauncherLink.h Code:
inline bool HasName() const { return(m_name.length() > 0); } |
I have spoken with a few of the admins for some of the most popular servers and it seems that the only 1 I know for sure that runs multiple zone servers is PEQ, and they do it on seperate networks to allow the ports to overlap without causing issues.
If there was a way to define which port ranges are used for which zone servers, that would make running multiple zone servers something that anyone could do. For some reason, it seems that my server is now breaking 120+ during peak times. This is causing some pretty annoying stability issues. I could probably help this by buying some very nice server upgrades, but I can't justify spending the money and I don't want to feel obligated to my players if I ask them for donations. Being able to split the load between my main server and my other PC (which is actually nicer than the server) should increase stability considerably. I tried setting it up that way for 1 night and it seemed to make a huge difference. Unfortunately the first zone to be reset was nexus (my server base) and it was restarted on the wrong port making it unavailable. I don't want to ask anyone to put alot of time into getting this to work, but if there are any coders out there that see this and think they can make the fix in a reasonable amount of time, I think it would be a great thing for anyone running a server from home when they need it. I am a network technician, so if there are network related questions to get this working, perhaps I can help with that part. |
All times are GMT -4. The time now is 11:17 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.