1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
适用于多用户生产环境和水平扩展场景。
使用 `cloud-runtime` feature 构建:
```bash
cargo build --release --features cloud-runtime
```
```bash
RECURSIVE_REDIS_URL=redis://your-redis-host:6379
RECURSIVE_REDIS_KEY_PREFIX=recursive:
RECURSIVE_REDIS_SESSION_TTL_SECS=7200
```
```bash
RECURSIVE_S3_BUCKET=my-recursive-bucket
RECURSIVE_S3_PREFIX=recursive
RECURSIVE_S3_TENANT_ID=default
AWS_DEFAULT_REGION=us-east-1
```
使用 `RECURSIVE_S3_TENANT_ID` 为每个租户隔离数据。每个租户的对话记录和内存存储在 `s3://bucket/prefix/tenant_id/` 下。
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: recursive
spec:
replicas: 3
selector:
template:
```