Where to install Railgun


#1

Hello,

My server infrastructure has separate backend and frontend server (NGINX). Where do I install railgun? Do I install it on the backend or frontend server?

Any help would be appreciated.

Thank you.


#2

Hi @user7121, Let us know how Railgun works for you. It’s available to Cloudflare Business and Enterprise customers. There are two parts - Railgun Listener is a single executable whose only dependency is a running Memcache instance. It runs on 64-bit Linux systems as a daemon installed on your web server’s network and services requests from Cloudflare using an encrypted, binary Railgun protocol. The Railgun Sender is installed in all Cloudflare data centers around the world and maintains connections with Railgun Listeners.

According to the docs, Railgun takes about an hour to install, setup, and test, here is the activation process, https://www.cloudflare.com/docs/railgun/index.html.


#3

Hello @cloonan sure, will definitely post review on it. I’m still not sure, should I install it on my frontend webserver or backend webserver? Or maybe both webserver?


#4

Railgun will be receiving requests from Cloudflare and then talking directly to your origin - so you want to put Railgun closest to your origin server.

To answer which is your origin server simply check your DNS settings on Cloudflare - that is the server Railgun will be talking to - so you want to install Railgun either on this physical host or very close to it in network terms.


#5

@simon Thank you for the help. I will install it on both servers, since the frontend and backend is on separate server.

I found this guide: https://www.basezap.com/guide-to-setup-railgun-listener-on-web-server/

Is it a valid guide to install Railgun on Centos 7? I’m not sysadmin, and I’m a bit confused with the installation documentation, but that one seems pretty straight forward.

Thank you.


#6

Note that I’m not familiar with your architecture and I should say that the only server Railgun needs to talk to is the one that serves HTTP responses to your visitors - if that is your frontend server, put it there. If both services return responses directly to visitors then that single Railgun instance can contact both - as long as the local network allows this.

The process for installation on Centos should be the same between 6 and 7 to my knowledge.