Skip to content

Commit

Permalink
updates for v1.4.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Jun 22, 2017
1 parent 3b999a6 commit 59a5686
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
4 changes: 3 additions & 1 deletion content-recommendation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ This will create a Kubernetes Job file in the ```jobs``` folder called matrix-fa

The luigi Task definition can be found in our [pyseldon](python-package.html) library in ```seldon.luigi.spark.SeldonMatrixFactorization```. In this case it simply calls the seldon-cli to run a matrix factorization job. Other cases might have more complex luigi jobs.

You can provide your own custom configuration by create a luigi configuration file and placing it in '''/seldon-data/luigi/<client>.cfg'''. An example such file might be as below which is setting custom database user and password setting and updating the days parameter for a couple of jobs:
You can provide your own custom configuration by create a luigi configuration file and placing it in '''/seldon-data/luigi/[client].cfg'''. An example such file might be as below which is setting custom database user and password setting and updating the days parameter for a couple of jobs:

{% highlight bash %}
[SeldonItemSimilarity]
db_user: proxyUser
db_pass: proxy
sparkDriverMemory: 2g
sparkExecutorMemory: 2g

[ItemSimilaritySparkJob]
days: 10
Expand Down
16 changes: 12 additions & 4 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ title: Install
# Download Seldon<a name="clone"></a>

{% highlight bash %}
git clone https://github.com/seldonio/seldon-server -b v1.4.5
git clone https://github.com/seldonio/seldon-server -b v1.4.6
{% endhighlight %}

* add ```seldon-server/kubernetes/bin``` to you shell PATH environment variable.

# Create a Kubernetes Cluster<a name="install-kubernetes"></a>

Seldon runs inside a [Kubernetes](http://kubernetes.io) cluster so you need to follow their [guides](http://kubernetes.io/docs) to create a cluster locally, on servers or in the cloud. We support kubernetes >= 1.2.
Seldon runs inside a [Kubernetes](http://kubernetes.io) cluster so you need to follow their [guides](http://kubernetes.io/docs) to create a cluster locally, on servers or in the cloud. We support kubernetes >= 1.6. Seldon should run on Kubernetes >= 1.2 except for the glusterfs persistent volume claim.

* Add kubectl to your shell PATH environment variable.

Expand All @@ -45,11 +45,17 @@ This will be sufficient for a single node configuration with default settings. T

You will need to optionally configure:

* Memory requests for kubernetes
* Passwords for Grafana and Spark UI interfaces
* Persistent Storage (Kubernetes HostPath by default)
* Seldon API Endpoint (Kubernetes NodePort by default)
* External MySQL server

## Memory requests and limits for Kubernetes
The default configuration has memory requests and limits. If you run seldon with Spark (2 workers) it will require 10G of memory. You can decrease the spark memory requests in the spark-worker.json.in and spark-master.json.in or you can run without Spark as discussed below.

For a production system you should carefully set the memory requests and limits for your system based on your workload you expect to run.

## Grafana and Spark UI Passwords
Seldon will start a Grafana dashboard for showing analytics about the runtime predictions and also provide access to the Spark UI for monitoring Spark jobs. These are password protected by default with the initial passwords set in the conguration Makefile:

Expand Down Expand Up @@ -145,7 +151,7 @@ ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAcco

* ***Testing on a single node or laptop things are running very slowly.***

Check you have enough memory. At least 6G is needed to run everything locally on a single node. If you are using minikube then you can start a minikube kubernetes with 6G of memory with ```minikube start --memory=6000```
Check you have enough memory. At least 12G is needed to run everything locally on a single node with Spark running two workers. If you are using minikube then you can start a minikube kubernetes with 12G of memory with ```minikube start --memory=12000```

In addition, the following may help:

Expand All @@ -163,7 +169,9 @@ This command reduces the memory allocation for the ***mysql*** and ***seldon-ser
SELDON_WITH_SPARK=false seldon-up
{% endhighlight %}

If you are using a Vagrant VM to run your kubernetes cluster ensure it has 6G of memory available from the host machine.
Removing Spark would allow you to run with 7G of memory.

If you are using a Vagrant VM to run your kubernetes cluster ensure it has enough memory available from the host machine.

* ***Pods are going into CrashLoopBackoff***

Expand Down
10 changes: 6 additions & 4 deletions seldon-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,11 @@ seldon-cli model --action train --client-name testclient --model-name matrix-fac
{% highlight bash %}
usage: seldon-cli model [-h] [--action {list,add,show,edit,train}]
[--client-name CLIENT_NAME] [--model-name MODEL_NAME]
...
[--spark-executor-memory SPARK_EXECUTOR_MEMORY]
[--spark-driver-memory SPARK_DRIVER_MEMORY]

Seldon Cli

positional arguments:
args

optional arguments:
-h, --help show this help message and exit
--action {list,add,show,edit,train}
Expand All @@ -428,6 +426,10 @@ optional arguments:
the name of the client
--model-name MODEL_NAME
the name of the client
--spark-executor-memory SPARK_EXECUTOR_MEMORY
spark executor memory
--spark-driver-memory SPARK_DRIVER_MEMORY
spark driver memory
{% endhighlight %}


Expand Down

0 comments on commit 59a5686

Please sign in to comment.