Skip to content

Commit 779fdad

Browse files
committed
docs(managing_deis): add store documentation
[skip ci]
1 parent 48afc6f commit 779fdad

10 files changed

Lines changed: 236 additions & 30 deletions

docs/managing_deis/builder_settings.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Requires: :ref:`controller <controller_settings>`, :ref:`registry <registry_sett
1313

1414
Required by: :ref:`router <router_settings>`
1515

16-
Considerations: must live on the same host as controller (see `#985`_)
17-
1816
Settings set by builder
1917
-----------------------
2018
The following etcd keys are set by the builder component, typically in its /bin/boot script.

docs/managing_deis/controller_settings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Requires: :ref:`controller <controller_settings>`, :ref:`cache <cache_settings>`
1313

1414
Required by: :ref:`router <router_settings>`
1515

16-
Considerations: must live on the same host as both builder and logger (see `#985`_)
16+
Considerations: must live on the same host as logger (see `#985`_)
1717

1818
Settings set by controller
1919
--------------------------

docs/managing_deis/database_settings.rst

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following settings are tunable for the :ref:`database` component.
99

1010
Dependencies
1111
------------
12-
Requires: none
12+
Requires: :ref:`store-gateway <store_gateway_settings>`
1313

1414
Required by: :ref:`controller <controller_settings>`
1515

@@ -22,19 +22,29 @@ The following etcd keys are set by the database component, typically in its /bin
2222
=========================== =================================================================================
2323
setting description
2424
=========================== =================================================================================
25+
/deis/database/adminPass database admin password (default: changeme123)
26+
/deis/database/adminUser database admin user (default: postgres)
27+
/deis/database/bucketName store component bucket used for database WAL logs and backups (default: db_wal)
28+
/deis/database/engine database engine (default: postgresql_psycopg2)
2529
/deis/database/host IP address of the host running database
30+
/deis/database/name database name (default: deis)
31+
/deis/database/password database password (default: changeme123)
2632
/deis/database/port port used by the database service (default: 5432)
27-
/deis/database/engine database engine (default: postgresql_psycopg2)
28-
/deis/database/adminUser database admin user (default: postgres)
29-
/deis/database/adminPass database admin password (default: changeme123)
3033
/deis/database/user database user (default: deis)
31-
/deis/database/password database password (default: changeme123)
32-
/deis/database/name database name (default: deis)
3334
=========================== =================================================================================
3435

3536
Settings used by database
3637
-------------------------
37-
The database component uses no keys from etcd other than the ones it sets.
38+
The following etcd keys are used by the database component.
39+
40+
==================================== ====================================================================================
41+
setting description
42+
==================================== ====================================================================================
43+
/deis/store/gateway/accessKey S3 API access used to access the deis store gateway (set by store-gateway)
44+
/deis/store/gateway/host host of the store gateway component (set by store-gateway)
45+
/deis/store/gateway/port port of the store gateway component (set by store-gateway)
46+
/deis/store/gateway/secretKey S3 API secret key used to access the deis store gateway (set by store-gateway)
47+
==================================== ====================================================================================
3848

3949
Using a custom database image
4050
-----------------------------

docs/managing_deis/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Managing Deis
1818
logger_settings
1919
registry_settings
2020
router_settings
21+
store_daemon_settings
22+
store_gateway_settings
23+
store_monitor_settings
2124
managing_users
2225
platform_logging
2326
platform_monitoring

docs/managing_deis/registry_settings.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following settings are tunable for the :ref:`registry` component.
99

1010
Dependencies
1111
------------
12-
Requires: :ref:`cache <cache_settings>`
12+
Requires: :ref:`cache <cache_settings>`, :ref:`store-gateway <store_gateway_settings>`
1313

1414
Required by: :ref:`builder <builder_settings>`, :ref:`controller <controller_settings>`
1515

@@ -22,6 +22,7 @@ The following etcd keys are set by the registry component, typically in its /bin
2222
=========================== =================================================================================
2323
setting description
2424
=========================== =================================================================================
25+
/deis/registry/bucketName store component bucket used for registry image layers (default: registry)
2526
/deis/registry/host IP address of the host running registry
2627
/deis/registry/port port used by the registry service (default: 5000)
2728
/deis/registry/protocol protocol for registry (default: http)
@@ -32,12 +33,16 @@ Settings used by registry
3233
---------------------------
3334
The following etcd keys are used by the registry component.
3435

35-
==================================== ======================================================
36+
==================================== =================================================================================
3637
setting description
37-
==================================== ======================================================
38+
==================================== =================================================================================
3839
/deis/cache/host host of the cache component (set by cache)
3940
/deis/cache/port port of the cache component (set by cache)
40-
==================================== ======================================================
41+
/deis/store/gateway/accessKey S3 API access used to access store-gateway (set by store-gateway)
42+
/deis/store/gateway/host host of the store-gateway component (set by store-gateway)
43+
/deis/store/gateway/port port of the store-gateway component (set by store-gateway)
44+
/deis/store/gateway/secretKey S3 API secret key used to access store-gateway (set by store-gateway)
45+
==================================== =================================================================================
4146

4247
The Deis registry component inherits from the Docker registry container, so additional configuration
4348
options can be supplied. For a full explanation of these settings, see the Docker registry `README`_.

docs/managing_deis/router_settings.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following settings are tunable for the :ref:`router` component.
99

1010
Dependencies
1111
------------
12-
Requires: :ref:`builder <builder_settings>`, :ref:`controller <controller_settings>`
12+
Requires: :ref:`builder <builder_settings>`, :ref:`controller <controller_settings>`, :ref:`store-gateway <store_gateway_settings>`
1313

1414
Required by: none
1515

@@ -33,12 +33,11 @@ The following etcd keys are used by the router component.
3333
======================================= ==================================================================================================================================================================================================================================================================================================================================
3434
setting description
3535
======================================= ==================================================================================================================================================================================================================================================================================================================================
36-
/deis/domains/* domain configuration for applications (set by controller)
37-
/deis/services/* application configuration (set by application unit files)
3836
/deis/builder/host host of the builder component (set by builder)
3937
/deis/builder/port port of the builder component (set by builder)
4038
/deis/controller/host host of the controller component (set by controller)
4139
/deis/controller/port port of the controller component (set by controller)
40+
/deis/domains/* domain configuration for applications (set by controller)
4241
/deis/router/bodySize nginx body size setting (default: 1m)
4342
/deis/router/builder/timeout/connect proxy_connect_timeout for deis-builder (default: 10000). Unit in miliseconds
4443
/deis/router/builder/timeout/read proxy_read_timeout for deis-builder (default: 1200000). Unit in miliseconds
@@ -48,13 +47,16 @@ setting description
4847
/deis/router/controller/timeout/read proxy_read_timeout for deis-controller (default: 20m)
4948
/deis/router/controller/timeout/send proxy_send_timeout for deis-controller (default: 20m)
5049
/deis/router/gzip nginx gzip setting (default: on)
51-
/deis/router/gzipHttpVersion nginx gzipHttpVersion setting (default: 1.1)
5250
/deis/router/gzipCompLevel nginx gzipCompLevel setting (default: 5)
53-
/deis/router/gzipProxied nginx gzipProxied setting (default: any)
54-
/deis/router/gzipVary nginx gzipVary setting (default: on)
5551
/deis/router/gzipDisable nginx gzipDisable setting (default: "msie6")
56-
/deis/router/gzipTypes nginx gzipTypes setting (default: "application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component")
52+
/deis/router/gzipHttpVersion nginx gzipHttpVersion setting (default: 1.1)
5753
/deis/router/gzipMinLength nginx gzipMinLength setting (default: 256)
54+
/deis/router/gzipProxied nginx gzipProxied setting (default: any)
55+
/deis/router/gzipTypes nginx gzipTypes setting (default: "application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component")
56+
/deis/router/gzipVary nginx gzipVary setting (default: on)
57+
/deis/services/* application configuration (set by application unit files)
58+
/deis/store/gateway/host host of the store gateway component (set by store-gateway)
59+
/deis/store/gateway/port port of the store gateway component (set by store-gateway)
5860
======================================= ==================================================================================================================================================================================================================================================================================================================================
5961

6062
Using a custom router image
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
:title: Customizing store-daemon
2+
:description: Learn how to tune custom Deis settings.
3+
4+
.. _store_daemon_settings:
5+
6+
Customizing store-daemon
7+
=========================
8+
The following settings are tunable for the :ref:`store` component's daemon service.
9+
10+
Dependencies
11+
------------
12+
Requires: :ref:`store-monitor <store_monitor_settings>`
13+
14+
Required by: :ref:`store-gateway <store_gateway_settings>`
15+
16+
Considerations: none
17+
18+
Settings set by store-daemon
19+
-----------------------------
20+
The following etcd keys are set by the store-daemon component, typically in its /bin/boot script.
21+
22+
============================= =================================================================================
23+
setting description
24+
============================= =================================================================================
25+
/deis/store/osds/$HOST Ceph OSD ID for this OSD instance (generated by Ceph)
26+
============================= =================================================================================
27+
28+
Settings used by store-daemon
29+
------------------------------
30+
The following etcd keys are used by the store-daemon component.
31+
32+
==================================== ============================================================================
33+
setting description
34+
==================================== ============================================================================
35+
/deis/store/adminKeyring keyring for an admin user to access the Ceph cluster (set by store-monitor)
36+
/deis/store/conf Ceph configuration file shared by store components (set by store-monitor)
37+
/deis/store/hosts deis-monitor hosts (set by store-monitor)
38+
/deis/store/monKeyring keyring for the monitor to access the Ceph cluster (set by store-monitor)
39+
/deis/store/monSetupComplete set when the Ceph cluster setup is complete
40+
==================================== ============================================================================
41+
42+
Using a custom store-daemon image
43+
---------------------------------
44+
You can use a custom Docker image for the store-daemon component instead of the image
45+
supplied with Deis:
46+
47+
.. code-block:: console
48+
49+
$ etcdctl set /deis/store-daemon/image myaccount/myimage:latest
50+
51+
This will pull the image from the public Docker registry. You can also pull from a private
52+
registry:
53+
54+
.. code-block:: console
55+
56+
$ etcdctl set /deis/store-daemon/image registry.mydomain.org:5000/myaccount/myimage:latest
57+
58+
Be sure that your custom image functions in the same way as the `stock store-daemon image`_ shipped with
59+
Deis. Specifically, ensure that it sets and reads appropriate etcd keys.
60+
61+
.. _`stock store-daemon image`: https://github.com/deis/deis/tree/master/store/daemon
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
:title: Customizing store-gateway
2+
:description: Learn how to tune custom Deis settings.
3+
4+
.. _store_gateway_settings:
5+
6+
Customizing store-gateway
7+
=========================
8+
The following settings are tunable for the :ref:`store` component's gateway service.
9+
10+
Dependencies
11+
------------
12+
Requires: :ref:`store-daemon <store_daemon_settings>`, :ref:`store-monitor <store_monitor_settings>`
13+
14+
Required by: :ref:`database <database_settings>`, :ref:`registry <registry_settings>`
15+
16+
Considerations: none
17+
18+
Settings set by store-gateway
19+
-----------------------------
20+
The following etcd keys are set by the store-gateway component, typically in its /bin/boot script.
21+
22+
============================= =================================================================================
23+
setting description
24+
============================= =================================================================================
25+
/deis/store/gatewayKeyring keyring for the gateway user to access the Ceph cluster (generated by Ceph)
26+
/deis/store/gateway/accessKey S3 API access used to access store-gateway (generated by Ceph)
27+
/deis/store/gateway/host IP address of the host running store-gateway
28+
/deis/store/gateway/port port used by the store-gateway service (default: 8888)
29+
/deis/store/gateway/secretKey S3 API secret key used to access store-gateway (generated by Ceph)
30+
============================= =================================================================================
31+
32+
Settings used by store-gateway
33+
------------------------------
34+
The following etcd keys are used by the store-gateway component.
35+
36+
==================================== ============================================================================
37+
setting description
38+
==================================== ============================================================================
39+
/deis/store/adminKeyring keyring for an admin user to access the Ceph cluster (set by store-monitor)
40+
/deis/store/conf Ceph configuration file shared by store components (set by store-monitor)
41+
/deis/store/hosts deis-monitor hosts (set by store-monitor)
42+
/deis/store/monKeyring keyring for the monitor to access the Ceph cluster (set by store-monitor)
43+
==================================== ============================================================================
44+
45+
Using a custom store-gateway image
46+
----------------------------------
47+
You can use a custom Docker image for the store-gateway component instead of the image
48+
supplied with Deis:
49+
50+
.. code-block:: console
51+
52+
$ etcdctl set /deis/store-gateway/image myaccount/myimage:latest
53+
54+
This will pull the image from the public Docker registry. You can also pull from a private
55+
registry:
56+
57+
.. code-block:: console
58+
59+
$ etcdctl set /deis/store-gateway/image registry.mydomain.org:5000/myaccount/myimage:latest
60+
61+
Be sure that your custom image functions in the same way as the `stock store-gateway image`_ shipped with
62+
Deis. Specifically, ensure that it sets and reads appropriate etcd keys.
63+
64+
.. _`stock store-gateway image`: https://github.com/deis/deis/tree/master/store/gateway

0 commit comments

Comments
 (0)