You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0c5ad15
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/getting-started/deploying-feast/docker-compose.md
+17-37Lines changed: 17 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,11 @@ This guide will bring Feast up using Docker Compose. This will allow you to:
9
9
* Retrieve features for online serving
10
10
* Retrieve features for batch serving \(only if using Google Cloud Platform\)
11
11
12
-
This guide is split into three parts:
13
-
14
-
1. Setting up your environment
15
-
2. Starting Feast with **online serving support only**\(does not require GCP\).
16
-
3. Starting Feast with support for **both online and batch** serving \(requires GCP\)
17
-
18
-
{% hint style="info" %}
19
-
The docker compose setup uses Direct Runner for the Apache Beam jobs that populate data stores. Running Beam with the Direct Runner means it does not need a dedicated runner like Flink or Dataflow, but this comes at the cost of performance. We recommend the use of a dedicated runner when running Feast with very large workloads.
20
-
{% endhint %}
21
-
22
12
### 0. Requirements
23
13
24
-
*[Docker compose](https://docs.docker.com/compose/install/)must be installed.
25
-
*\(for batch serving only\) For batch serving you will also need a [GCP service account key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) that has access to [Google Cloud Storage](https://cloud.google.com/storage) and [BigQuery](https://cloud.google.com/bigquery).
26
-
*\(for batch serving only\)[Google Cloud SDK ](https://cloud.google.com/sdk/install)installed, authenticated, and configured to the GCP project you will use.
14
+
*[Docker Compose](https://docs.docker.com/compose/install/)should be installed
15
+
*[GCP service account](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) that has access to [Google Cloud Storage](https://cloud.google.com/storage) and [BigQuery](https://cloud.google.com/bigquery)\(for historical serving only\).
16
+
*[Google Cloud SDK ](https://cloud.google.com/sdk/install)installed, authenticated, and configured to the GCP project you want to use\(for historical serving only\).
27
17
28
18
## 1. Set up environment
29
19
@@ -35,13 +25,7 @@ Make a copy of the `.env.sample` file:
35
25
cp .env.sample .env
36
26
```
37
27
38
-
The following command will bring up a Feast deployment with a single Feast Core instance without any online stores:
39
-
40
-
```javascript
41
-
docker-compose up -d
42
-
```
43
-
44
-
## 2. Docker Compose for Online Serving
28
+
## 2. Start Feast for Online Serving
45
29
46
30
Run the following command if you would like to start both Feast Core and Feast Serving at the same time. The Feast Serving online deployment will use Redis as its database.
47
31
@@ -52,13 +36,7 @@ docker-compose \
52
36
up -d
53
37
```
54
38
55
-
If you already have Feast Core running \(externally or from the earlier section\), then you can optionally bring up only the Feast Serving online deployment for Redis.
56
-
57
-
```javascript
58
-
docker-compose -f docker-compose.online.yml up -d
59
-
```
60
-
61
-
Your Feast deployment should now be starting up. Have a look at the docker logs, especially that of the Jupyter container:
39
+
Your Feast deployment should now be starting up. Have a look at the Jupyter docker logs to know when your notebook is ready to be used:
62
40
63
41
```text
64
42
docker logs feast_jupyter_1
@@ -71,17 +49,19 @@ Once it is ready you should be able to connect to a local notebook that contains
Batch serving requires Google Cloud Storage to function, specifically Google Cloud Storage \(GCP\) and BigQuery.
80
60
{% endhint %}
81
61
82
62
### 3.1 Set up Google Cloud Platform
83
63
84
-
Create a [service account ](https://cloud.google.com/iam/docs/creating-managing-service-accounts)from the GCP console and copy it to the `infra/docker-compose/gcp-service-accounts` folder:
64
+
Create a [service account ](https://cloud.google.com/iam/docs/creating-managing-service-accounts)and copy it to the `infra/docker-compose/gcp-service-accounts` folder:
@@ -99,19 +79,19 @@ Configure the `.env` file based on your environment. At the very least you have
99
79
100
80
| Parameter | Description |
101
81
| :--- | :--- |
102
-
| FEAST\_CORE\_GCP\_SERVICE\_ACCOUNT\_KEY | This should be your service account file name, for example `key.json`. |
103
-
| FEAST\_BATCH\_SERVING\_GCP\_SERVICE\_ACCOUNT\_KEY | This should be your service account file name, for example `key.json`|
104
-
| FEAST\_JUPYTER\_GCP\_SERVICE\_ACCOUNT\_KEY | This should be your service account file name, for example `key.json`|
105
-
| FEAST\_JOB\_STAGING\_LOCATION | Google Cloud Storage bucket that Feast will use to stage data exports and batch retrieval requests, for example `gs://your-gcs-bucket/staging`|
82
+
|`FEAST_CORE_GCP_SERVICE_ACCOUNT_KEY`| This should be your service account file name, for example `key.json`. |
83
+
|`FEAST_BATCH_SERVING_GCP_SERVICE_ACCOUNT_KEY`| This should be your service account file name, for example `key.json`|
84
+
|`FEAST_JUPYTER_GCP_SERVICE_ACCOUNT_KEY`| This should be your service account file name, for example `key.json`|
106
85
107
-
### 3.3 Configure .bq-store.yml
86
+
### 3.3 Configure Historical Serving
108
87
109
-
We will also need to configure the `bq-store.yml` file inside `infra/docker-compose/serving/` to configure the BigQuery storage configuration as well as the feature sets that the store subscribes to. At a minimum you will need to set:
88
+
We will also need to configure the `batch-serving.yml` file inside `infra/docker-compose/serving/`. This configuration is used to retrieve training datasets from Feast. At a minimum you will need to set:
110
89
111
90
| Parameter | Description |
112
91
| :--- | :--- |
113
-
| bigquery\_config.project\_id | This is you [GCP project Id](https://cloud.google.com/resource-manager/docs/creating-managing-projects). |
114
-
| bigquery\_config.dataset\_id | This is the name of the BigQuery dataset that tables will be created in. Each feature set will have one table in BigQuery. |
92
+
|`feast.stores.config.project_id`| This is your [GCP project Id](https://cloud.google.com/resource-manager/docs/creating-managing-projects). |
93
+
|`feast.stores.config.dataset_id`| This is the name of the BigQuery dataset that feature data will be stored in. |
94
+
|`feast.stores.config.staging_location`| This is the staging location on Google Cloud Storage for retrieval of training datasets |
3.[Helm](https://helm.sh/3)\(2.16.0 or greater\) installed on your local machine with Tiller installed in your cluster. Helm 3 has not been tested yet.
23
+
3.[Helm](https://helm.sh/)\(2.16.0 or greater\) installed on your local machine with Tiller installed in your cluster. Helm 3 has not been tested yet.
0 commit comments