forked from delphix/virtualization-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for gRPC message and memory limits delphix#390
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ arrange: | |
- Unicode_Data.md | ||
- Working_with_Powershell.md | ||
- Scratch_Paths.md | ||
- Metadata_and_Message_Limits.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Metadata and Message Limits | ||
Operations that exceed their internal metadata and/or message limits will be terminated. | ||
|
||
## Maximum size for metadata | ||
The maximum size for metadata is 32 megabytes (`32MB`). | ||
|
||
The following fields within [User Visible Errors](/Best_Practices/User_Visible_Errors.md) will all count towards used internal metadata: | ||
1. `message` | ||
2. `action` | ||
3. `output` | ||
|
||
### How to tell if the maximum metadata size was exceeded | ||
When an operation should fail with a `UserError`, but fails with a `RpcError` instead. | ||
|
||
## Maximum size for messages | ||
The maximum size for messages is 128 kibibytes (`128 KiB`). | ||
|
||
The following items will count towards the size of the message. | ||
1. [Platform library](/References/Platform_Libraries.md) arguments | ||
- The sum of all arguments passed into a platform library callback will be included in the internal message size. | ||
2. [Logging](/References/Logging.md) | ||
- The message provided to the logging function will be included in the internal message size. | ||
|
||
### How to tell if the maximum message size was exceeded | ||
When a platform library or log callback fails with a `RpcError`. | ||
|
||
## What to do if the maximum metadata or message size is exceeded | ||
Please reach out to us via the [Virtualization SDK GitHub repository](https://github.com/delphix/virtualization-sdk/) for guidance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters