pw server on 2 PCs

Results 1 to 21 of 21
  1. #1
    Apprentice mrainor is offline
    MemberRank
    Mar 2011 Join Date
    UkraineLocation
    7Posts

    Support pw server on 2 PCs

    please tell me how to divide the right files to the server it was not on one PC and the two PCs?
    sorry for my bad English


  2. #2
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    This will be self explanatory if you look at all of the config files for each 'daemon'. Any time you want to re-locate a 'daemon' to a different physical server you just have to make sure that it will still have connections with the other 'daemons' that it's supposed to.

    So you will need to go through all the config files to set it up, but it would actually be rather simple to do since all you'll have to do is point to the new location by I.P. of X 'daemon' - Y 'daemon'

  3. #3
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Re: pw server on 2 PCs

    Just wanted to say that doing that is a very high security risk if those machines only communicate vie the internet. If they are locally connected its ok.

  4. #4
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    Zorno is correct on that. The ONLY 'daemon' you want available to the WAN is GLINKD (and you do not want the others communicating with or open to the WAN for ANY reason)...

  5. #5
    Apprentice mrainor is offline
    MemberRank
    Mar 2011 Join Date
    UkraineLocation
    7Posts

    Re: pw server on 2 PCs

    hosts also need to edit?
    PCs connected via LAN

  6. #6
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    Quote Originally Posted by mrainor View Post
    hosts also need to edit?
    PCs connected via LAN
    Yes...

  7. #7
    Apprentice mrainor is offline
    MemberRank
    Mar 2011 Join Date
    UkraineLocation
    7Posts

    Re: pw server on 2 PCs

    thanks for the help

  8. #8
    Omega bobsobol is offline
    MemberRank
    May 2007 Join Date
    UKLocation
    5,702Posts

    Re: pw server on 2 PCs

    Mind if I clarify? When you say LAN, you mean firewalled from the internet, and preferably within a NAT, so that any machine on the internet will see them as one machine, or not at all.

    Having said that, VPN with a sufficiently encrypted tunnel should be secure enough? (I know banks will do it, but they have well paid techs to keep that connection secure) It may well degrade performance more than an otherwise overburdened single server if the link is slow. (and a secure link will be) Not sure what the bandwidth requirement is for such links between PW daemons.

  9. #9
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Re: pw server on 2 PCs

    Quote Originally Posted by bobsobol View Post
    Having said that, VPN with a sufficiently encrypted tunnel should be secure enough? (I know banks will do it, but they have well paid techs to keep that connection secure) It may well degrade performance more than an otherwise overburdened single server if the link is slow. (and a secure link will be) Not sure what the bandwidth requirement is for such links between PW daemons.
    VPN tunnel are the same as open internet in this case, because the daemons still should only communicate on intranet and not internet. Doesnt matter if the players use VPN or not.

    BTW better dont use Hamachi as VPN for PW servers. 1. The free Version only supports 8 players, 2. it eats up bandwith and ressources.
    OpenVPN is a good solution using the 10.x.x.x network up to 256*256*256 players ( which im pretty sure are too much for our servers )

  10. #10
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    VPN for players makes absolutely no sense =\ If anything you want to keep players OFF the VPN or LAN that the servers run on...!

    What he is saying (if I am correct, is) he is just pointing out that you do indeed desire to operate all the PW daemons from within one LAN, behind NAT and a Firewall - or if for any or whatever reason you did have to use external servers for each of the daemons you would have to use a pretty high security VPN to avoid 'problems' (hackers)... Similar to how banks operate (&& ATMs anyone)... As he also pointed out though, the link speeds (ping) will be degraded so much on a truly secure VPN that running it on a single underpowered machine would probably still be a better option...

    I couldn't tell you what type of connection the daemons truly need to each other bobsobol, as I've always ran them all on a single machine.

    The only reason I could even see running them on separate machines is due to (ofc) the high amount of ram that is needed for a full server (my release alone, with all maps open simultaneously, I recommend using a system with NO less than 16 GB of ram, my true recommendation would be 32 GB)...
    Last edited by 343; 25-02-12 at 01:33 PM.

  11. #11
    Apprentice mrainor is offline
    MemberRank
    Mar 2011 Join Date
    UkraineLocation
    7Posts

    Re: pw server on 2 PCs

    I would like to install it separately gamed, but I can not understand in what config gmserver.conf GProviderClient

  12. #12
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    Quote Originally Posted by mrainor View Post
    I would like to install it separately gamed, but I can not understand in what config gmserver.conf GProviderClient
    Honestly, I am not sure off of the top of my head (by memory), but if you go through all each of the daemons config files it should be apparent what needs to be changed and where.

    Each daemon has at least one config file. If you open them all simultaneously you will see 'how they all talk to each other' (that's what I mean by it should become pretty apparent after you look at them all, especially simultaneously)...

    Then you can separate whatever you want, if you really wanted to you could run each and every 'service' and each and every 'map' on a separate physical machine

  13. #13
    Apprentice Xavier Extreme is offline
    MemberRank
    Dec 2008 Join Date
    Xav PWServerLocation
    14Posts

    happy Re: pw server on 2 PCs

    343
    I rarely ever post to the boards. I have been a member for quite a while. Used information from Szaer and you. (few others)
    I've had a server running since I started as a member here.

    I just want to say "Thank You".

    As simple as your post is on this subject, It really opened things up for me.

    I could not figure out this separation of servers out until reading your post right here. (had the 127.x.x.x blues )

    God bless and thanks.

    Xavier

  14. #14
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    Quote Originally Posted by Xavier Extreme View Post
    343
    I rarely ever post to the boards. I have been a member for quite a while. Used information from Szaer and you. (few others)
    I've had a server running since I started as a member here.

    I just want to say "Thank You".

    As simple as your post is on this subject, It really opened things up for me.

    I could not figure out this separation of servers out until reading your post right here. (had the 127.x.x.x blues )

    God bless and thanks.

    Xavier
    Glad I could be of help. I once was a 'lurker' too, hope to see more posts from you

  15. #15
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: pw server on 2 PCs

    Also, do not forget:

    Attached Thumbnails Attached Thumbnails no-place-like-127.jpg  

  16. #16
    Apprentice Xavier Extreme is offline
    MemberRank
    Dec 2008 Join Date
    Xav PWServerLocation
    14Posts

    Re: pw server on 2 PCs

    Thanks 343.

    I like the picture.

    Unfortunately, the separation of servers is not as easy as it may seem.
    I did split them.
    The servers see each other and connect, but for some reason I'm getting mixed results.

    one map on random server will connect, let you enter, and has all mobs.
    The next one will let you enter but no mobs.

    The last will connect, but you can not enter.

    The puzzling part of this is that no errors show server side.
    Strange. I'll just keep working on it. I guess, but still a little lost.

    Thanks for the reply and the idea.
    (by the way. downloaded your complete package to do this with. Nice release.)

    If you have any ideas what I might be missing.
    I'd appreciate any advice at this point.

    Later.

    Xavier

  17. #17
    Apprentice Xavier Extreme is offline
    MemberRank
    Dec 2008 Join Date
    Xav PWServerLocation
    14Posts

    Re: pw server on 2 PCs

    Well seems the hosts, gs.alias, and gs.config play a very important roles with this separation of map servers. What a pain.

    If i were not running 100% Linux boxes, I would have quit by now.

    Now I can enter all maps, but no mobs.
    If I move the directory back to main server, everything shows.

    May have a large headache by this weekend.

    Now I see why not many people try to run multiple computer setups.

    Happy PWing everyone.

    Xavier

  18. #18
    PW Dev <3 Ozuru is offline
    MemberRank
    Feb 2011 Join Date
    737Posts

    Re: pw server on 2 PCs

    Something das did with me was make a headless VM on our main linux machine, and clone some services while have others share them. It was very clever, and you may want to look into that.

  19. #19
    Apprentice Xavier Extreme is offline
    MemberRank
    Dec 2008 Join Date
    Xav PWServerLocation
    14Posts

    Re: pw server on 2 PCs

    Good idea Ozuru.

    If I can find it.
    I've been searching up and down the site for ideas on separating the servers to running on multiple servers/pcs.

    So far nothing.

    I'm even looking at docs i've had since joining, nothing yet.

    I'll see if i can find that thread.

    I just find it strange that all maps open, connect, but no npcs or mobs show up. Spent about 6hrs working on it last night.

    Thanks for some direction Ozuru.


    Later,
    Xavier

  20. #20
    Apprentice Xavier Extreme is offline
    MemberRank
    Dec 2008 Join Date
    Xav PWServerLocation
    14Posts

    big grin Re: pw server on 2 PCs


    I got it!

    Seems the problem was a corrupt gs.config file.

    My setup was flawless, but never considered a bad file.

    Using Ozuru's idea, I went ahead and setup NFS file shares to the main server. Works perfectly!

    So separation of the server daemons is as simple as TCP connections.

    Big thanks to 343 for Complete PW Package and separation idea.
    And to Ozuru too for the idea that pushed me to setup NFS.

    Now I can run all instances from one server on multiple servers and only need to update one set of files.

    Happy PWing
    Xavier

  21. #21
    PW Dev <3 Ozuru is offline
    MemberRank
    Feb 2011 Join Date
    737Posts

    Re: pw server on 2 PCs

    Quote Originally Posted by Xavier Extreme View Post

    I got it!

    Seems the problem was a corrupt gs.config file.

    My setup was flawless, but never considered a bad file.

    Using Ozuru's idea, I went ahead and setup NFS file shares to the main server. Works perfectly!

    So separation of the server daemons is as simple as TCP connections.

    Big thanks to 343 for Complete PW Package and separation idea.
    And to Ozuru too for the idea that pushed me to setup NFS.

    Now I can run all instances from one server on multiple servers and only need to update one set of files.

    Happy PWing
    Xavier
    Glad you got it working :D



Advertisement