mirror of https://github.com/dapr/docs.git
Merge pull request #1730 from daixiang0/patch-1
Describe the use of unix sockets, the CLI commands and usage example.md
This commit is contained in:
commit
3ee4addfe7
|
@ -27,6 +27,7 @@ This table is meant to help users understand the equivalent options for running
|
||||||
| `--enable-metrics` | not supported | | configuration spec | Enable prometheus metric (default true) |
|
| `--enable-metrics` | not supported | | configuration spec | Enable prometheus metric (default true) |
|
||||||
| `--enable-mtls` | not supported | | configuration spec | Enables automatic mTLS for daprd to daprd communication channels |
|
| `--enable-mtls` | not supported | | configuration spec | Enables automatic mTLS for daprd to daprd communication channels |
|
||||||
| `--enable-profiling` | `--enable-profiling` | | `dapr.io/enable-profiling` | Enable profiling |
|
| `--enable-profiling` | `--enable-profiling` | | `dapr.io/enable-profiling` | Enable profiling |
|
||||||
|
| `--unix-domain-socket` | `--unix-domain-socket` | `-u` | not supported | On Linux, when communicating with the Dapr sidecar, use unix domain sockets for lower latency and greater throughput compared to TCP ports. Not available on Windows OS |
|
||||||
| `--log-as-json` | not supported | | `dapr.io/log-as-json` | Setting this parameter to `true` outputs logs in JSON format. Default is `false` |
|
| `--log-as-json` | not supported | | `dapr.io/log-as-json` | Setting this parameter to `true` outputs logs in JSON format. Default is `false` |
|
||||||
| `--log-level` | `--log-level` | | `dapr.io/log-level` | Sets the log level for the Dapr sidecar. Allowed values are `debug`, `info`, `warn`, `error`. Default is `info` |
|
| `--log-level` | `--log-level` | | `dapr.io/log-level` | Sets the log level for the Dapr sidecar. Allowed values are `debug`, `info`, `warn`, `error`. Default is `info` |
|
||||||
| `--app-max-concurrency` | `--app-max-concurrency` | | `dapr.io/app-max-concurrency` | Limit the concurrency of your application. A valid value is any number larger than `0`
|
| `--app-max-concurrency` | `--app-max-concurrency` | | `dapr.io/app-max-concurrency` | Limit the concurrency of your application. A valid value is any number larger than `0`
|
||||||
|
|
|
@ -38,6 +38,7 @@ dapr run [flags] [command]
|
||||||
| `--log-level` | | `info` | The log verbosity. Valid values are: `debug`, `info`, `warn`, `error`, `fatal`, or `panic` |
|
| `--log-level` | | `info` | The log verbosity. Valid values are: `debug`, `info`, `warn`, `error`, `fatal`, or `panic` |
|
||||||
| `--metrics-port` | `DAPR_METRICS_PORT` | `9090` | The port that Dapr sends its metrics information to |
|
| `--metrics-port` | `DAPR_METRICS_PORT` | `9090` | The port that Dapr sends its metrics information to |
|
||||||
| `--profile-port` | | `7777` | The port for the profile server to listen on |
|
| `--profile-port` | | `7777` | The port for the profile server to listen on |
|
||||||
|
| `--unix-domain-socket`, `-u` | | | Path to a unix domain socket dir mount. If specified, communication with the Dapr sidecar uses unix domain sockets for lower latency and greater throughput when compared to using TCP ports. Not available on Windows OS |
|
||||||
| `--dapr-http-max-request-size` | | `4` | Max size of request body in MB. |
|
| `--dapr-http-max-request-size` | | `4` | Max size of request body in MB. |
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
@ -46,6 +47,9 @@ dapr run [flags] [command]
|
||||||
# Run a .NET application
|
# Run a .NET application
|
||||||
dapr run --app-id myapp --app-port 5000 -- dotnet run
|
dapr run --app-id myapp --app-port 5000 -- dotnet run
|
||||||
|
|
||||||
|
# Run a .Net application with unix domain sockets
|
||||||
|
dapr run --app-id myapp --app-port 5000 --unix-domain-socket /tmp -- dotnet run
|
||||||
|
|
||||||
# Run a Java application
|
# Run a Java application
|
||||||
dapr run --app-id myapp -- java -jar myapp.jar
|
dapr run --app-id myapp -- java -jar myapp.jar
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue