1.2. Discovery Service
Installing Discovery
Presto uses the Discovery service to find all the nodes in the cluster. Every Presto instance will register itself with the Discovery service on startup.
Discovery is configured and run the same way as Presto. Download discovery-server-1.15.tar.gz, unpack it to create the installation directory, create the data directory, then configure it to run on a different port than Presto. The standard port for Discovery is 8411.
Configuring Discovery
As with Presto, create an etc directory inside the installation directory to hold the configuration files.
Node Properties
Create the Node Properties file the same way as for Presto, but make sure to use a unique value for node.id. For example:
node.environment=production
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
node.data-dir=/var/discovery/data
JVM Config
Create the JVM Config file the same way as for Presto, but configure it to use fewer resources:
-server
-Xmx1G
-XX:+UseConcMarkSweepGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p
Config Properties
Create etc/config.properties with the following lone option:
http-server.http.port=8411
Running Discovery
Discovery is run the same way as Presto. See Running Presto for details.