| layout | default |
|---|---|
| title | Seldon Server Setup |
concepts --> setup server --> logging --> configure data --> realtime activity --> offline model --> runtime configuration --> microservices --> recommendations
setup server --> events --> feature extraction pipeline --> runtime scorer --> microservice scorer --> predictions
To run the Seldon Server, we need a number of things present on the machine it is running on.
- Java (v >= 7)
- Tomcat (v >= 7)
- Maven (v >=3)
- td-agent (latest)
There also needs to be a ZooKeeper server running along with Memcached and a MySQL server. It's up to you where you place these, but they should be accessible from the server on which you are running Seldon Server.
Clone the project seldon-server.
The repository for Seldon Server settings is ZooKeeper. The Seldon Shell can be used to set/update these settings. Use the "Seldon Shell" tool to create settings for memcached and manage the datasources in MySQL. Also create a client to use one of these datasources. The settings stored in zookeeper can also be viewed/modified directly. For the full set of available configuration options see here.
Change directory to seldon-server/server.
Run mvn clean package.
This will create a war file in the target directory. You can now deploy this to an application server. At startup the seldon-server searches for the enviroment variable SELDON_ZKSERVERS to find the location of zookeeper. For Apache Tomcat you an achieve this by placing a file setenv.sh in the /bin folder of tomcat containing:
export SELDON_ZKSERVERS=<zookeeper hosts>
for example:
export SELDON_ZKSERVERS=localhost
You should now have a running Seldon Server instance!