Skip to content

Commit 61f4b60

Browse files
authored
Merge branch 'v1.15' into endgame_1.15-updates
2 parents 3d8e8a9 + e18a469 commit 61f4b60

File tree

13 files changed

+98
-50
lines changed

13 files changed

+98
-50
lines changed

daprdocs/content/en/concepts/dapr-services/scheduler.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ In production environments, it's recommended to perform periodic backups of this
8181

8282
To perform backup and restore operations, you'll need to access the embedded etcd instance. This requires port forwarding to expose the etcd ports (port 2379).
8383

84+
#### Kubernetes Example
85+
86+
Here's how to port forward and connect to the etcd instance:
87+
88+
```shell
89+
kubectl port-forward svc/dapr-scheduler-server 2379:2379 -n dapr-system
90+
```
91+
8492
#### Docker Compose Example
8593

8694
Here's how to expose the etcd ports in a Docker Compose configuration for standalone mode:
@@ -111,6 +119,16 @@ When running in HA mode, you only need to expose the ports for one scheduler ins
111119
112120
Once you have access to the etcd ports, you can follow the [official etcd backup and restore documentation](https://etcd.io/docs/v3.5/op-guide/recovery/) to perform backup and restore operations. The process involves using standard etcd commands to create snapshots and restore from them.
113121
122+
## Monitoring Scheduler's etcd Metrics
123+
124+
Port forward the Scheduler instance and view etcd's metrics with the following:
125+
126+
```shell
127+
curl -s http://localhost:2379/metrics
128+
```
129+
130+
Fine tune the embedded etcd to your needs by [reviewing and configuring the Scheduler's etcd flags as needed](https://github.com/dapr/dapr/blob/master/charts/dapr/README.md#dapr-scheduler-options).
131+
114132
## Disabling the Scheduler service
115133

116134
If you are not using any features that require the Scheduler service (Jobs API, Actor Reminders, or Workflows), you can disable it by setting `global.scheduler.enabled=false`.

daprdocs/content/en/developing-applications/building-blocks/conversation/howto-conversation-layer.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ spec:
5252
value: <REPLACE_WITH_YOUR_KEY>
5353
- name: model
5454
value: gpt-4-turbo
55-
- name: cacheTTL
56-
value: 10m
5755
```
5856
5957
## Connect the conversation client
@@ -114,12 +112,12 @@ func main() {
114112
}
115113

116114
input := dapr.ConversationInput{
117-
Message: "Please write a witty haiku about the Dapr distributed programming framework at dapr.io",
118-
// Role: nil, // Optional
119-
// ScrubPII: nil, // Optional
115+
Content: "Please write a witty haiku about the Dapr distributed programming framework at dapr.io",
116+
// Role: "", // Optional
117+
// ScrubPII: false, // Optional
120118
}
121119

122-
fmt.Printf("conversation input: %s\n", input.Message)
120+
fmt.Printf("conversation input: %s\n", input.Content)
123121

124122
var conversationComponent = "echo"
125123

@@ -163,7 +161,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
163161
let request =
164162
ConversationRequestBuilder::new(conversation_component, vec![input.clone()]).build();
165163

166-
println!("conversation input: {:?}", input.message);
164+
println!("conversation input: {:?}", input.content);
167165

168166
let response = client.converse_alpha1(request).await?;
169167

@@ -224,6 +222,16 @@ dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 3500 -
224222

225223
{{< /tabs >}}
226224

225+
## Advanced features
226+
227+
The conversation API supports the following features:
228+
229+
1. **Prompt caching:** Allows developers to cache prompts in Dapr, leading to much faster response times and reducing costs on egress and on inserting the prompt into the LLM provider's cache.
230+
231+
1. **PII scrubbing:** Allows for the obfuscation of data going in and out of the LLM.
232+
233+
To learn how to enable these features, see the [conversation API reference guide]({{< ref conversation_api.md >}}).
234+
227235
## Related links
228236

229237
Try out the conversation API using the full examples provided in the supported SDK repos.

daprdocs/content/en/operations/hosting/self-hosted/self-hosted-with-docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ services:
149149
- type: tmpfs
150150
target: /data
151151
tmpfs:
152-
size: "10000"
152+
size: "64m"
153153

154154
networks:
155155
hello-dapr: null

daprdocs/content/en/operations/security/mtls.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ kubectl rollout restart -n <DAPR_NAMESPACE> deployment/dapr-sentry
231231
```bash
232232
kubectl rollout restart deploy/dapr-operator -n <DAPR_NAMESPACE>
233233
kubectl rollout restart statefulsets/dapr-placement-server -n <DAPR_NAMESPACE>
234+
kubectl rollout restart deploy/dapr-sidecar-injector -n <DAPR_NAMESPACE>
235+
kubectl rollout restart deploy/dapr-scheduler-server -n <DAPR_NAMESPACE>
234236
```
235237

236238
4. Restart your Dapr applications to pick up the latest trust bundle.
@@ -332,12 +334,13 @@ Example:
332334
dapr status -k
333335

334336
NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED
335-
dapr-sentry dapr-system True Running 1 1.7.0 17d 2022-03-15 09:29.45
336-
dapr-dashboard dapr-system True Running 1 0.9.0 17d 2022-03-15 09:29.45
337-
dapr-sidecar-injector dapr-system True Running 1 1.7.0 17d 2022-03-15 09:29.45
338-
dapr-operator dapr-system True Running 1 1.7.0 17d 2022-03-15 09:29.45
339-
dapr-placement-server dapr-system True Running 1 1.7.0 17d 2022-03-15 09:29.45
340-
⚠ Dapr root certificate of your Kubernetes cluster expires in 2 days. Expiry date: Mon, 04 Apr 2022 15:01:03 UTC.
337+
dapr-operator dapr-system True Running 1 1.15.0 4m 2025-02-19 17:36.26
338+
dapr-placement-server dapr-system True Running 1 1.15.0 4m 2025-02-19 17:36.27
339+
dapr-dashboard dapr-system True Running 1 0.15.0 4m 2025-02-19 17:36.27
340+
dapr-sentry dapr-system True Running 1 1.15.0 4m 2025-02-19 17:36.26
341+
dapr-scheduler-server dapr-system True Running 3 1.15.0 4m 2025-02-19 17:36.27
342+
dapr-sidecar-injector dapr-system True Running 1 1.15.0 4m 2025-02-19 17:36.26
343+
⚠ Dapr root certificate of your Kubernetes cluster expires in 2 days. Expiry date: Mon, 04 Apr 2025 15:01:03 UTC.
341344
Please see docs.dapr.io for certificate renewal instructions to avoid service interruptions.
342345
```
343346

daprdocs/content/en/reference/api/conversation_api.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,34 @@ POST http://localhost:<daprPort>/v1.0-alpha1/conversation/<llm-name>/converse
3030

3131
| Field | Description |
3232
| --------- | ----------- |
33-
| `conversationContext` | The ID of an existing chat room (like in ChatGPT). |
34-
| `inputs` | Inputs for the conversation. Multiple inputs at one time are supported. |
35-
| `metadata` | [Metadata](#metadata) passed to conversation components. |
33+
| `inputs` | Inputs for the conversation. Multiple inputs at one time are supported. Required |
34+
| `cacheTTL` | A time-to-live value for a prompt cache to expire. Uses Golang duration format. Optional |
35+
| `scrubPII` | A boolean value to enable obfuscation of sensitive information returning from the LLM. Optional |
36+
| `temperature` | A float value to control the temperature of the model. Used to optimize for consistency and creativity. Optional |
37+
| `metadata` | [Metadata](#metadata) passed to conversation components. Optional |
3638

37-
#### Metadata
39+
#### Input body
3840

39-
Metadata can be sent in the request’s URL. It must be prefixed with `metadata.`, as shown in the table below.
40-
41-
| Parameter | Description |
41+
| Field | Description |
4242
| --------- | ----------- |
43-
| `metadata.key` | The API key for the component. `key` is not applicable to the [AWS Bedrock component]({{< ref "aws-bedrock.md#authenticating-aws" >}}). |
44-
| `metadata.model` | The Large Language Model you're using. Value depends on which conversation component you're using. `model` is not applicable to the [DeepSeek component]({{< ref deepseek.md >}}). |
45-
| `metadata.cacheTTL` | A time-to-live value for a prompt cache to expire. Uses Golang duration format. |
46-
47-
For example, to call for [Anthropic]({{< ref anthropic.md >}}):
48-
49-
```bash
50-
curl POST http://localhost:3500/v1.0-alpha1/conversation/anthropic/converse?metadata.key=key1&metadata.model=claude-3-5-sonnet-20240620&metadata.cacheTTL=10m
51-
```
52-
53-
{{% alert title="Note" color="primary" %}}
54-
The metadata parameters available depend on the conversation component you use. [See all the supported components for the conversation API.]({{< ref supported-conversation >}})
55-
{{% /alert %}}
43+
| `content` | The message content to send to the LLM. Required |
44+
| `role` | The role for the LLM to assume. Possible values: 'user', 'tool', 'assistant' |
45+
| `scrubPII` | A boolean value to enable obfuscation of sensitive information present in the content field. Optional |
5646

57-
### Request content
47+
### Request content example
5848

5949
```json
6050
REQUEST = {
61-
"inputs": ["what is Dapr", "Why use Dapr"],
62-
"metadata": {
63-
"model": "model-type-based-on-component-used",
64-
"key": "authKey",
65-
"cacheTTL": "10m",
66-
}
51+
"inputs": [
52+
{
53+
"content": "What is Dapr?",
54+
"role": "user", // Optional
55+
"scrubPII": "true", // Optional. Will obfuscate any sensitive information found in the content field
56+
},
57+
],
58+
"cacheTTL": "10m", // Optional
59+
"scrubPII": "true", // Optional. Will obfuscate any sensitive information returning from the LLM
60+
"temperature": 0.5 // Optional. Optimizes for consistency (0) or creativity (1)
6761
}
6862
```
6963

daprdocs/content/en/reference/api/metadata_api.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ A list of features enabled via Configuration spec (including build-time override
3737
### App connection details
3838
The metadata API returns information related to Dapr's connection to the app. This includes the app port, protocol, host, max concurrency, along with health check details.
3939

40+
### Scheduler connection details
41+
Information related to the connection to one or more scheduler hosts.
42+
4043
### Attributes
4144

4245
The metadata API allows you to store additional attribute information in the format of key-value pairs. These are ephemeral in-memory and are not persisted if a sidecar is reloaded. This information should be added at the time of a sidecar creation (for example, after the application has started).
@@ -82,6 +85,7 @@ components | [Metadata API Response Component](#metadataapiresponsec
8285
httpEndpoints | [Metadata API Response HttpEndpoint](#metadataapiresponsehttpendpoint)[] | A json encoded array of loaded HttpEndpoints metadata.
8386
subscriptions | [Metadata API Response Subscription](#metadataapiresponsesubscription)[] | A json encoded array of pub/sub subscriptions metadata.
8487
appConnectionProperties| [Metadata API Response AppConnectionProperties](#metadataapiresponseappconnectionproperties) | A json encoded object of app connection properties.
88+
scheduler | [Metadata API Response Scheduler](#metadataapiresponsescheduler) | A json encoded object of scheduler connection properties.
8589

8690
<a id="metadataapiresponseactor"></a>**Metadata API Response Registered Actor**
8791

@@ -142,6 +146,12 @@ healthProbeInterval | string | Time between each health probe, in go duration fo
142146
healthProbeTimeout | string | Timeout for each health probe, in go duration format.
143147
healthThreshold | integer | Max number of failed health probes before the app is considered unhealthy.
144148

149+
<a id="metadataapiresponsescheduler"></a>**Metadata API Response Scheduler**
150+
151+
Name | Type | Description
152+
---- | ---- | -----------
153+
connected_addresses | string[] | List of strings representing the addresses of the conntected scheduler hosts.
154+
145155

146156
### Examples
147157

@@ -215,6 +225,13 @@ curl http://localhost:3500/v1.0/metadata
215225
"healthProbeTimeout": "500ms",
216226
"healthThreshold": 3
217227
}
228+
},
229+
"scheduler": {
230+
"connected_addresses": [
231+
"10.244.0.47:50006",
232+
"10.244.0.48:50006",
233+
"10.244.0.49:50006"
234+
]
218235
}
219236
}
220237
```
@@ -338,6 +355,13 @@ Get the metadata information to confirm your custom attribute was added:
338355
"healthProbeTimeout": "500ms",
339356
"healthThreshold": 3
340357
}
358+
},
359+
"scheduler": {
360+
"connected_addresses": [
361+
"10.244.0.47:50006",
362+
"10.244.0.48:50006",
363+
"10.244.0.49:50006"
364+
]
341365
}
342366
}
343367
```

daprdocs/content/en/reference/components-reference/supported-bindings/sftp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ aliases:
99

1010
## Component format
1111

12-
To set up the SFTP binding, create a component of type `bindings.sftp`. See [this guide]({{ ref bindings-overview.md }}) on how to create and apply a binding configuration.
12+
To set up the SFTP binding, create a component of type `bindings.sftp`. See [this guide]({{< ref bindings-overview.md >}}) on how to create and apply a binding configuration.
1313

1414
```yaml
1515
apiVersion: dapr.io/v1alpha1

daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,8 @@ Apache Kafka supports the following bulk metadata options:
459459

460460
| Configuration | Default |
461461
|----------|---------|
462-
| `maxBulkAwaitDurationMs` | `10000` (10s) |
463-
| `maxBulkSubCount` | `80` |
462+
| `maxAwaitDurationMs` | `10000` (10s) |
463+
| `maxMessagesCount` | `80` |
464464

465465
## Per-call metadata fields
466466

@@ -540,6 +540,7 @@ app.include_router(router)
540540
```
541541

542542
{{% /codetab %}}
543+
543544
{{< /tabs >}}
544545

545546
## Receiving message headers with special characters

daprdocs/static/docs/open-telemetry-collector/open-telemetry-collector-jaeger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ data:
1919
zpages:
2020
endpoint: :55679
2121
exporters:
22-
logging:
23-
loglevel: debug
22+
debug:
23+
verbosity: detailed
2424
# Depending on where you want to export your trace, use the
2525
# correct OpenTelemetry trace exporter here.
2626
#

0 commit comments

Comments
 (0)