cancel
Showing results for 
Search instead for 
Did you mean: 

Two standalone Relay servers for one instance?

former_member198720
Participant
0 Kudos

Is it possible for an SMP server farm to have Two seperate standalone Relay servers functional at the same time??

Both are new versions: SMP3 SP07, RS 16.x.x.1953

Accepted Solutions (1)

Accepted Solutions (1)

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sajan,

Yes, it is possible. What exactly are you trying to setup? Please elaborate on your server farm.

Regards,

Nagesh

former_member198720
Participant
0 Kudos

Hi Nagesh - Thanks for showing interest in helping me out.

Actually i was testing this in the Dev server to implement the successful method in the Production SMP server farm.

Our SMP Production system has three clustered SMP servers (Active-Active clustering) connected to a single oracle DB - This is already setup (with one Hybrid application live in PRD)

Now we have two Relay servers which we intend to implement as Farm Relay servers in front of the SMP clustered servers.

Please help me with my below queries:

1) I am not sure why the existing Relay server connection with the back-end server lost suddenly when i connected a new Relay server as standalone. Do you have any clue? Previously one relay server was connected to the back-end which now has lost the connection. Tested with the below two urls in the rshost browser:

http://localhost/rs16.5/admin/rs.dll

http://localhost/rs16.5/client/rs.dll/SMPserverfarm

2) As said before, we intend to make it a Relay server farm for PRD landscape. I understand that the rs.config files would remain the same on all the relay servers in a farm. But I am not sure how to run the dbsvc script on the smp servers in a farm for the rsoe config

C:\SAP\MobilePlatform3\Server\db\sa\smp3\win32\Bin64>dbsvc -as -s auto -t RSOE -w smp-oes "C:\SAP\MobilePlatform3\Server\extras\rsoe\windows\Bin64\rsoe2.exe" -cr "host=<rs host> (should i enter both the rshost in the script at same time or should i run this script twice with different rshost?); port=80; url_suffix=/rs16.5/server/rs.dll" -cs "host=localhost;port=80" -f <smpfarm_id> -id <id> -t ***** -o C:\Rsoe_log\rsoe2.log

Also please highlight if you find any other issue in the above script.

3) I understand that once i setup the Relay server in front of the SMP server, the Hybrid app which is in production, connected directly with the SMP server. We need to make the below change in the connection string. Right now i have no idea how to make this below change

OLD Address ->
http://<smphost>:8080/odata/applications/latest/<(><applicationid>/Connections
NEW Address ->
http://<new rshost>/rs16.5/client/rs.dll/SMPserverfarm/odata/applications/latest/<applicationid>/Connections


Could you please explain me in a little detail how do we exactly make this change. Is there any impact on the Hybrid app with this change?



BR -

Sajan Mathew

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sajan,

Please see the below guide:

Hope this will help. Most of the issues are with Farm settings in the RS file. Please check the links and ensure you are using the correct ports and try to telnet them.

Regards,

Nagesh

former_member198720
Participant
0 Kudos

Hi Nagesh,

I was so descriptive because i wanted some direct answers to the specific queries i asked. I already have gone through many blogs and hence are the queries. Also i am new to all this.

Can u or anyone pls help me with the 3rd query, and if possible 2nd query also. I will be much thankful & Much appreciated!

BR -

Sajan mathew

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Sajan,

Relay Server is recommened for MBO Based apps. I believe your Hybrid App is based on oData services.

Reply to point 2. However, you can still user RS with SMP 3.0+. I am not sure if you are using the correct command/add the complete details in rs.config file. Please refer to this link which has the full example of the file.

http://help.sap.com/saphelp_smp303svr/helpdata/en/ca/2cac530b72497c832227711221ef0d/content.htm

Once you make the changes, please try to update it with the command ---- Ensure you have the bidirectional ports opened on the RS and SMP.

Reply to point 3 - I don't think you need to make any changes in the services. During the app registrations you will be using the RS server instead of SMP server details once its setup and the communication should be established successfully.

I would like to loop

Regards,

Nagesh

former_member198720
Participant
0 Kudos

Thank you Nagesh,

Hi Jitendra Kansal

3) The Relay server is setup in front of the SMP server nodes. The Hybrid app which is in production, is currently connected directly with the SMP server. We want to route the connection between the application and SMP server through the Relay server. I guess we need to make the below change in the connection string, but how & where exactly should we do it.

OLD Address ->
http://<smphost>:8080/odata/applications/latest/<(><applicationid>/Connections
NEW Address ->
http://<new rshost>/rs16.5/client/rs.dll/SMPserverfarm/odata/applications/latest/<applicationid>/Connections


Can you please provide any document or let us know how exactly do we do this.


Regards

Sajan Mathew

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I would highly recommend you to open an OSS ticket on your issue, i am sure you will get the solution support team.

Meanwhile looping to share his understanding.

Regards,

JK

midhun_vp
Active Contributor
0 Kudos

Hi Saian,

You need to use the new URL in the case of both hybrid and native apps. If you are using a Kapsel logon plugin server address is your relay server host name, company ID is your relay server farm name, and URL suffix is the path to relay server .dll.

If you are testing it from a rest client you could follow the url given in the guides provided by Nagesh.

For native apps you could have a look at this:http://help.sap.com/saphelp_smp304sdk/helpdata/en/c7/72270a71451014bd67c50ff3b4523f/frameset.htm

Regards,Midhun

SAP Technology RIG

andreas_wegmann
Employee
Employee
0 Kudos

Hi Sajan,

1 - Please note that starting with SMP 3.0 SP06 and higher you should only use the new RS 16.5.x which comes with a new design.
Latest available version is 16.5.5.
The Relay Server components are available in the SAP Mobile Platform Server installation. By default, the Relay Server files are located in <SMP_HOME>\Server\extras\relayserver in a RelayServer2-IIS-<SMP_version>.zip file.
2 - Normally there are two possible scenarios.
Either you are running a Load Balancer which is in front of the RS farm where you conecct to or you create a RSOE which connects to both RS which are configured as a farm:
That means assuming you have a rs.config which contains RS1 and RS2.
You need to create a rsoe service similar to:

dbsvc -as -w oes "%SQLANY16%\rsoe2.exe"   -cr "host=RS1; port=<host_port>; url_suffix=/rs16.5/server/rs.dll;host=RS2; port=<host_port>; url_suffix=/rs16.5/server/rs.dll-cs "host=localhost;port=80"  f <farm_name> -id <farm id> -t <token>

Please take care to use the new URL suffix for RS 16.5.x.

BR

Andreas

Answers (0)