Jump to content
  • 0

2 hosts for 1 server setup.


Linkin Park

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

I want to use 2 separate hosts for my server, 1 for login and 1 for char and map server. Both running on CentOS.

 

My Questions are the following:

1. Do I need to have exact copy of my server files on both host?

2. How would I run the login server only on HostA, then run char and map server on HostB on putty? I know I have to use ./login-server_sql or something like that, but I don't know how to logout putty with killing the process, because if I use CTRL+A+D, it doesn't work when I started only the login server. CTRL+A+D works if I started the whole server using ./athena-start start

3. How is the conf setup for different IPs?

 

Thanks everyone!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

why don't you order a high specs vps?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

Both hosts have high specs, it's actually a dedicated server. I need it to be separated for some stuffs.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

/hmm 
ahaha your making it too difficult =)
but anyway i don't know about that ... 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  188
  • Reputation:   16
  • Joined:  06/12/12
  • Last Seen:  

I think u can setup char and login seerver on one and map server on other
as login server connects to char server and char server connects to map server.

Yes you would have to have exact copy of SRC files on both side as while compileing both can error, NPC and db can be different as those are only read by map server [still i recommment same files]

next is setup.

in char server and map server , map server ip and char server ips are to be configure , just put them accorind to ur servers.
map sure ports are open. make use both have same sql db

 

u have to give ./athena-start start on both server bt u can edit "athena-start" files on trunk folder to start the desired server of ur choice
lastly , map server takes more ram so i would suggest to leave it alone. Please post the results as its first time somebody doing it in my knowlegde

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

It passed the login and char server, however it fails to connect on map server when I tried logging in.

 

My Setup:

  • Login Server: HostA
  • Char Server: HostA
  • Map Server: HostB
  • SQL Server: HostA
  • Ports used are open on both hosts


anyone?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

I want to use 2 separate hosts for my server, 1 for login and 1 for char and map server. Both running on CentOS.

 

My Questions are the following:

1. Do I need to have exact copy of my server files on both host?

2. How would I run the login server only on HostA, then run char and map server on HostB on putty? I know I have to use ./login-server_sql or something like that, but I don't know how to logout putty with killing the process, because if I use CTRL+A+D, it doesn't work when I started only the login server. CTRL+A+D works if I started the whole server using ./athena-start start

3. How is the conf setup for different IPs?

 

Thanks everyone!

 

1. HostA needs the server config files for login & char servers

HostB needs everything else.

 

2. You could start 'screen' first, then ./login-server_sql &

and ./char-server_sql &

 

3. HostA: in /conf/char_athena.conf

char_ip: <IP_of_HostA>

HostB: /conf/map_athena.conf

char_ip: <IP_of_HostA>

map_ip: <IP_of_HostB>

 

SQL settings on both hosts should point to the MySQL Server on HostA.

Your clientinfo.xml should point to HostA (the one running login-server_sql).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  


 



I want to use 2 separate hosts for my server, 1 for login and 1 for char and map server. Both running on CentOS.

 

My Questions are the following:

1. Do I need to have exact copy of my server files on both host?

2. How would I run the login server only on HostA, then run char and map server on HostB on putty? I know I have to use ./login-server_sql or something like that, but I don't know how to logout putty with killing the process, because if I use CTRL+A+D, it doesn't work when I started only the login server. CTRL+A+D works if I started the whole server using ./athena-start start

3. How is the conf setup for different IPs?

 

Thanks everyone!

 

1. HostA needs the server config files for login & char servers

HostB needs everything else.

 

2. You could start 'screen' first, then ./login-server_sql &

and ./char-server_sql &

 

3. HostA: in /conf/char_athena.conf

char_ip: <IP_of_HostA>

HostB: /conf/map_athena.conf

char_ip: <IP_of_HostA>

map_ip: <IP_of_HostB>

 

SQL settings on both hosts should point to the MySQL Server on HostA.

Your clientinfo.xml should point to HostA (the one running login-server_sql).

 

 

I tried using the following setup and didn't work :( Still fails on map-server, although the map-server is connected to the char server located on HostA.

 

However, when I closed map-server on HostB, I get Server Closed(1) after selecting a character.

 

 



Bumpin this up, really need some help.. Sorry for the bump within 12 hours.

Edited by Linkin Park
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

So when you try to connect with a client, it times out?

What message do you see in the map-server?

Does it show any characters logging in?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

So when you try to connect with a client, it times out?

What message do you see in the map-server?

Does it show any characters logging in?

When I try to connect using my RO Client, it passes the login and char server, however, after I selected my character, it fails to connect to the map-server when the map-server is online, but the client displays 'Server Closed(1)' when the map-server is down from HostB.

No messages on map-server console after I selected my character.

Bumps on this..

help, anyone?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   0
  • Joined:  09/29/12
  • Last Seen:  

necro need to know if its still viable

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...