Skip to content

Commit 9e9fc03

Browse files
author
Matthew Fisher
committed
Merge pull request #139 from bacongobbler/75-customizing-workflow
feat(customizing-workflow): add component tuning
2 parents 759a17b + a96ed26 commit 9e9fc03

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pages:
3838
- Upgrading Workflow: managing-workflow/upgrading-workflow.md
3939
- Customizing Workflow:
4040
- CLI Plugins: customizing-workflow/cli-plugins.md
41+
- Tuning Component Settings: customizing-workflow/tuning-component-settings.md
4142
- Troubleshooting:
4243
- Troubleshooting with kubectl: troubleshooting/troubleshooting.md
4344
- Roadmap:
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Tuning Component Settings
2+
3+
Helm Charts are a set of Kubernetes manifests that reflect best practices to deploy an application
4+
or service. Helm is heavily influenced by [Homebrew](http://brew.sh/), including the
5+
[formula model](https://github.com/Homebrew/homebrew-core). A Helm chart is to Helm as a Formula
6+
is to Homebrew.
7+
8+
When you run `helmc fetch deis/workflow-beta3`, you can customize the chart with
9+
`helmc edit workflow-beta3`. To customize the respective component, edit
10+
`manifests/deis-<component>-rc.yaml` and modify the `env` section of the component to tune these
11+
settings.
12+
13+
For example, to allow only administrators to register new accounts in the controller,
14+
edit `manifests/deis-controller-rc.yaml` and add the following under the `env` section:
15+
16+
```
17+
env:
18+
- name: REGISTRATION_MODE
19+
value: "admin_only"
20+
```
21+
22+
23+
## Customizing the Controller
24+
25+
The following environment variables are tunable for the [Controller][] component:
26+
27+
Setting | Description
28+
------------------- | ---------------------------------
29+
REGISTRATION_MODE | set registration to "enabled", "disabled", or "admin_only" (default: "enabled")
30+
GUNICORN_WORKERS | number of [gunicorn][] workers spawned to process requests (default: 8)
31+
DEIS_RESERVED_NAMES | a comma-separated list of names which applications cannot reserve for routing (default: "deis")
32+
33+
34+
## Customizing the Database
35+
36+
The following environment variables are tunable for the [Database][] component:
37+
38+
Setting | Description
39+
----------------- | ---------------------------------
40+
BACKUP_FREQUENCY | how ofter the database should perform a base backup (default: "12h")
41+
BACKUPS_TO_RETAIN | number of base backups the backing store should retain (default: 5)
42+
43+
44+
[controller]: ../understanding-workflow/components.md#controller
45+
[database]: ../understanding-workflow/components.md#database
46+
[gunicorn]: http://gunicorn.org/

0 commit comments

Comments
 (0)