Skip to content

Commit 47758e1

Browse files
authored
Fix Docker Compose Batch Serving (#744)
* Fix issue where external Feast client cannot access docker-compose Kafka This issue occurs when users attempt to interact with an internal docker-compose Kafka from a extenral. When Feast Core provides the Kakfa bootstrap servers, its relative to inside the docker-compose network, and not resolvable from the outside. This adds an external alias for the internal Kafka to bootstrap servers so that external clients work correctly. * Fix batch serving listening on wrong port and incorrect active-store typo * Fix extra slash in gcs store url.
1 parent c869e37 commit 47758e1

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

infra/docker-compose/.env.sample

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ FEAST_SERVING_IMAGE=gcr.io/kf-feast/feast-serving
1313
# Feast Serving - Batch (BigQuery)
1414
FEAST_BATCH_SERVING_CONFIG=batch-serving.yml
1515
FEAST_BATCH_SERVING_GCP_SERVICE_ACCOUNT_KEY=placeholder.json
16-
FEAST_BATCH_JOB_STAGING_LOCATION=gs://your-gcs-bucket/staging
1716
# Feast Serving - Online (Redis)
1817
FEAST_ONLINE_SERVING_CONFIG=online-serving.yml
1918

infra/docker-compose/core/core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ feast:
1111
type: kafka
1212
options:
1313
topic: feast-features
14-
bootstrapServers: kafka:9092
14+
bootstrapServers: "kafka:9092,localhost:9094"
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
feast:
22
core-host: core
3-
active-store: batch
3+
active-store: historical
44
stores:
55
- name: historical
66
type: BIGQUERY
77
# Changes required for batch serving to work
88
# Please see https://api.docs.feast.dev/grpc/feast.core.pb.html#Store for configuration options
99
config:
10-
project_id: my_project
11-
dataset_id: my_dataset
12-
staging_location: gs://mybucket/myprefix
10+
project_id: project
11+
dataset_id: dataset
12+
staging_location: gs://gcs_bucket/prefix
1313
initial_retry_delay_seconds: 1
1414
total_timeout_seconds: 21600
1515
subscriptions:
@@ -18,3 +18,6 @@ feast:
1818
job_store:
1919
redis_host: redis
2020
redis_port: 6379
21+
22+
grpc:
23+
port: 6567

0 commit comments

Comments
 (0)