Let’s check if config file is valid and we don’t have any typos etc.īBERAN-MAC:~ bberan$ haproxy -f /usr/local/Cellar/haproxy/haproxy.cfg -c I used a very basic configuration but HAProxy documentation has detailed info on all the options. The highlights in the config file are the timeouts, max connections allowed for each Rserve instance, host:port for Rserve instances, load balancer listening on port 80, balancing being done using roundrobin method, server stats page configured on port 8080 and username and password for accessing the stats page. Server rserve1 localhost:6311 check maxconn 32 In this case I created in the folder ‘/usr/local/Cellar/haproxy/’ but it could have been some other folder. On Mac you can do this by running the following commands in the terminalĬreate the config file that contains pointers to the Rserve instances. In this blog post, I will show you, how you can achieve this using another open source project called HAProxy. Luckily you can use a load-balancer to distribute the load across multiple RServe instances without having to invest in a commercial R distribution. But if you have a large number of users on Tableau Server and use R scripts heavily, pointing Tableau to a single RServe instance may not be sufficient. Tableau runs R scripts using RServe, a free, open-source R package.
0 Comments
Leave a Reply. |