Skip to content

Commit e98681f

Browse files
feat: add parallel querying (#146)
1 parent 92fe78e commit e98681f

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

helm/templates/serviceconfig.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ data:
1818
graphql.corsEnabled = {{ .Values.serviceConfig.corsEnabled }}
1919
graphql.timeout = {{ .Values.serviceConfig.timeoutDuration }}
2020
21+
threads.io.max = {{ .Values.serviceConfig.threads.io }}
22+
threads.request.max = {{ .Values.serviceConfig.threads.request }}
23+
2124
attribute.service = {
2225
host = {{ .Values.serviceConfig.attributeService.host }}
2326
port = {{ .Values.serviceConfig.attributeService.port }}

helm/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ serviceConfig:
4747
corsEnabled: true
4848
defaultTenantId: ""
4949
timeoutDuration: 30s
50+
threads:
51+
io: 10
52+
request: 10
5053
attributeService:
5154
host: attribute-service
5255
port: 9012

hypertrace-graphql-service/src/main/java/org/hypertrace/graphql/service/DefaultGraphQlServiceConfig.java

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
2222
private static final String DEFAULT_TENANT_ID = "defaultTenantId";
2323

2424
private static final String MAX_IO_THREADS_PROPERTY = "threads.io.max";
25+
private static final String MAX_REQUEST_THREADS_PROPERTY = "threads.request.max";
2526

2627
private static final String ATTRIBUTE_SERVICE_HOST_PROPERTY = "attribute.service.host";
2728
private static final String ATTRIBUTE_SERVICE_PORT_PROPERTY = "attribute.service.port";
@@ -46,6 +47,7 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
4647
Duration graphQlTimeout;
4748
Optional<String> defaultTenantId;
4849
int maxIoThreads;
50+
int maxRequestThreads;
4951
String attributeServiceHost;
5052
int attributeServicePort;
5153
Duration attributeServiceTimeout;
@@ -67,6 +69,7 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
6769
this.graphQlTimeout = untypedConfig.getDuration(GRAPHQL_TIMEOUT);
6870
this.defaultTenantId = optionallyGet(() -> untypedConfig.getString(DEFAULT_TENANT_ID));
6971
this.maxIoThreads = untypedConfig.getInt(MAX_IO_THREADS_PROPERTY);
72+
this.maxRequestThreads = untypedConfig.getInt(MAX_REQUEST_THREADS_PROPERTY);
7073

7174
this.attributeServiceHost = untypedConfig.getString(ATTRIBUTE_SERVICE_HOST_PROPERTY);
7275
this.attributeServicePort = untypedConfig.getInt(ATTRIBUTE_SERVICE_PORT_PROPERTY);

hypertrace-graphql-service/src/main/resources/configs/common/application.conf

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ graphql.timeout = 30s
1010
defaultTenantId = ${?DEFAULT_TENANT_ID}
1111

1212
threads.io.max = 10
13+
threads.request.max = 10
1314

1415
attribute.service = {
1516
host = localhost

0 commit comments

Comments
 (0)