You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DH-21024: Grizzly worker kind fixes
This PR includes a couple of fixes + configuration improvements:
- Worker kinds are now filtered to only use Core+ workers. This fixes
bug where legacy worker sorted first would get picked
- Fixed a bug where `operateAs` was redeclared in an if block instead of
being set in the outer. This was causing operateAs to be ignored. Added
respective unit tests
- Added additional `experimentalWorkerConfig` settings:
- `additionalMemory`
- `classPaths`
- `engine`
- `envVars`
- I did not add support for `enableGcLogs` or `python environment` as
they require additional logic I didn't want to have to replicate from
the web
### Testing Config
Configure a grizzly server such that legacy workers are sorted to
beginning of worker kind list. See description in the Jira or you can
use https://bmingles-f3.int.illumon.com:8123/iriside/ is already which
is already setup for this.
#### VS Code `deephaven.enterpriseServers` settings for different tests
- Default config
```json
{
"url": "https://bmingles-f3.int.illumon.com:8123/",
"experimentalWorkerConfig": {
"heapSize": 0.5
}
},
```
Connecting to server should successfully create a connection
- Named config
```json
{
"url": "https://bmingles-f3.int.illumon.com:8123/",
"experimentalWorkerConfig": {
"engine": "Core+",
"heapSize": 0.5
}
},
```
Connecting to server should successfully create a connection
- Additional config
```json
{
"url": "https://bmingles-f3.int.illumon.com:8123/",
"experimentalWorkerConfig": {
"additionalMemory": 1,
"classPaths": "",
"envVars": "FOO=BAR",
"heapSize": 0.5
}
},
```
- Connecting to server should successfully create a connection.
- additionalMemory can be seen in query monitor column
- envVars
```py
import os
print(os.environ.get('FOO'))
```
- classPaths - not sure how to test this one
### Testing operateAs
- Disconnect from grizzly server if connect.
- Right-click on the server in VS Code, and `Connect to Server as
Another User`
- Login as iris, and give another user to operateAs
- Should see the `operateAs` user in the `owner` column of query monitor
for the interactive console query that gets created
Copy file name to clipboardExpand all lines: package.json
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,9 +110,23 @@
110
110
"type": "object",
111
111
"description": "(experimental) Worker configuration used when creating new connections to the server",
112
112
"properties": {
113
+
"additionalMemory": {
114
+
"type": "number",
115
+
"description": "(GB) The amount of additional memory allocated to this worker process beyond the JVM heap memory. This allows Deephaven to account for memory allocated by Python native code, Java direct memory, and other types of non-heap memory."
0 commit comments