Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions docs/reference/online-stores/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,51 @@ online_store:
```
{% endcode %}

### Example (Cassandra — multi-DC)

Use `datacenters` instead of `hosts` when your cluster spans multiple datacenters.
Each entry gets a named Cassandra **execution profile** keyed by its `name` field,
enabling per-DC routing. The default profile is determined by `load_balancing.local_dc`
(or the first datacenter entry when `load_balancing` is absent). Use the optional
`routing` block to direct reads and writes to specific datacenters. The keyspace must
already exist; Feast does not create it automatically.

`datacenters` is mutually exclusive with `hosts` and `secure_bundle_path`.

{% code title="feature_store.yaml" %}
```yaml
project: my_feature_repo
registry: data/registry.db
provider: local
online_store:
type: cassandra
keyspace: KeyspaceName
datacenters:
- name: dc1
hosts:
- 192.168.1.1
- 192.168.1.2
replication_factor: 3 # optional, informational only
replication_strategy: NetworkTopologyStrategy # optional, informational only
- name: dc2
hosts:
- 10.0.0.1
replication_factor: 2 # optional, informational only
routing: # optional
read_dc: dc2 # DC to use for reads (default: load_balancing.local_dc)
write_dc: dc1 # DC to use for writes (default: load_balancing.local_dc)
port: 9042 # optional
username: user # optional
password: secret # optional
protocol_version: 5 # optional
load_balancing: # optional
local_dc: 'dc1' # sets the default execution profile
load_balancing_policy: 'TokenAwarePolicy(DCAwareRoundRobinPolicy)' # optional
read_concurrency: 100 # optional
write_concurrency: 100 # optional
```
{% endcode %}

### Example (Astra DB)

{% code title="feature_store.yaml" %}
Expand Down
Loading
Loading