Skip to content

Commit 0c5ad15

Browse files
woopgitbook-bot
authored andcommitted
GitBook: [v0.5-branch] 2 pages modified
1 parent 63dbed4 commit 0c5ad15

2 files changed

Lines changed: 18 additions & 38 deletions

File tree

‎docs/getting-started/deploying-feast/docker-compose.md‎

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ This guide will bring Feast up using Docker Compose. This will allow you to:
99
* Retrieve features for online serving
1010
* Retrieve features for batch serving \(only if using Google Cloud Platform\)
1111

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-
2212
### 0. Requirements
2313

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\).
2717

2818
## 1. Set up environment
2919

@@ -35,13 +25,7 @@ Make a copy of the `.env.sample` file:
3525
cp .env.sample .env
3626
```
3727

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
4529

4630
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.
4731

@@ -52,13 +36,7 @@ docker-compose \
5236
up -d
5337
```
5438

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:
6240

6341
```text
6442
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
7149
[I 05:50:22.991 NotebookApp] http://localhost:8888/
7250
```
7351

52+
Navigate to the Jupyter Notebook container at the following URL when the container is ready.
53+
7454
{% embed url="http://localhost:8888/tree/feast/examples" caption="" %}
7555

76-
## 3. Docker Compose for Online and Batch Serving
56+
## 3. Start Feast for Training and Online Serving
7757

7858
{% hint style="info" %}
7959
Batch serving requires Google Cloud Storage to function, specifically Google Cloud Storage \(GCP\) and BigQuery.
8060
{% endhint %}
8161

8262
### 3.1 Set up Google Cloud Platform
8363

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:
8565

8666
```javascript
8767
cp my-service-account.json ${FEAST_HOME_DIR}/infra/docker-compose/gcp-service-accounts
@@ -99,19 +79,19 @@ Configure the `.env` file based on your environment. At the very least you have
9979

10080
| Parameter | Description |
10181
| :--- | :--- |
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` |
10685

107-
### 3.3 Configure .bq-store.yml
86+
### 3.3 Configure Historical Serving
10887

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:
11089

11190
| Parameter | Description |
11291
| :--- | :--- |
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 |
11595

11696
### 3.4 Start Feast \(with batch retrieval support\)
11797

‎docs/getting-started/deploying-feast/kubernetes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This guide requires [Google Cloud Platform](https://cloud.google.com/) for insta
2020

2121
1. [Google Cloud SDK ](https://cloud.google.com/sdk/install)installed, authenticated, and configured to the project you will use.
2222
2. [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) installed.
23-
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.
2424

2525
## 1. Set up GCP
2626

0 commit comments

Comments
 (0)