Skip to content

Commit 1be0330

Browse files
authored
bump version to 25.3.21 (#69)
1 parent 9ca411f commit 1be0330

File tree

885 files changed

+98149
-10123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

885 files changed

+98149
-10123
lines changed

httpproxy/cloudsim/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.oracle.nosql</groupId>
99
<artifactId>proxy</artifactId>
10-
<version>25.1.13</version>
10+
<version>25.3.21</version>
1111
</parent>
1212

1313
<artifactId>cloudsim</artifactId>

httpproxy/cloudsim/src/main/java/oracle/nosql/cloudsim/CloudSim.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*-
2-
* Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This file was distributed by Oracle as part of a version of Oracle NoSQL
55
* Database made available at:

httpproxy/httpproxy/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.oracle.nosql</groupId>
99
<artifactId>proxy</artifactId>
10-
<version>25.1.13</version>
10+
<version>25.3.21</version>
1111
</parent>
1212

1313
<artifactId>httpproxy</artifactId>

httpproxy/httpproxy/src/main/java/oracle/nosql/proxy/Config.java

Lines changed: 59 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*-
2-
* Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This file was distributed by Oracle as part of a version of Oracle NoSQL
55
* Database made available at:
@@ -97,6 +97,17 @@ enum ParamContext {CLOUD, ON_PREM, ALL, HIDDEN}
9797
new ParamDef("httpPort", "80", ParamType.INT, ParamContext.ALL);
9898
public static ParamDef HTTPS_PORT =
9999
new ParamDef("httpsPort", "443", ParamType.INT, ParamContext.ALL);
100+
101+
/*
102+
* This is used to size the number of Netty threads used to handle incoming
103+
* requests from the network. If REQUEST_THREAD_POOL_SIZE is 0 these threads
104+
* will also be used to handle the requests through sending the request
105+
* to KV. In this case the number should be relatively high in order to
106+
* keep up with traffic. If REQUEST_THREAD_POOL_SIZE is non-zero
107+
* requests are handled using a separate pool. If that is the case this
108+
* number can be smaller. If 0 Netty defaults to 2 * nCPUs (maybe 3x,
109+
* depending on netty release)
110+
*/
100111
public static ParamDef NUM_REQUEST_THREADS =
101112
new ParamDef("numRequestThreads", "32", ParamType.INT,
102113
ParamContext.ALL);
@@ -107,6 +118,20 @@ enum ParamContext {CLOUD, ON_PREM, ALL, HIDDEN}
107118
public static ParamDef MONITOR_STATS_ENABLED =
108119
new ParamDef("monitorStatsEnabled", "false",
109120
ParamType.BOOL, ParamContext.ALL);
121+
/*
122+
* Set to non-zero to use a thread pool separate from Netty for handling
123+
* requests. The pool is sized based on this parameter
124+
*/
125+
public static ParamDef REQUEST_THREAD_POOL_SIZE =
126+
new ParamDef("requestThreadPoolSize", "0", ParamType.INT, ParamContext.ALL);
127+
/*
128+
* Set to non-zero to use a thread pool to handle async responses from
129+
* KV client calls rather than using the KV threads themselves. This
130+
* parameter is only used if ASYNC is true
131+
*/
132+
public static ParamDef KV_THREAD_POOL_SIZE =
133+
new ParamDef("kvThreadPoolSize", "0",
134+
ParamType.INT, ParamContext.ALL);
110135

111136
/** Wallet file that holds the salt value for the query cache */
112137
public static ParamDef SALT_WALLET =
@@ -300,6 +325,7 @@ enum ParamContext {CLOUD, ON_PREM, ALL, HIDDEN}
300325
* errorCacheSize: Maximum number of unique IP addresses to track
301326
* error rates for.
302327
*/
328+
@Deprecated
303329
public static ParamDef ERROR_CACHE_SIZE =
304330
new ParamDef("errorCacheSize", "10000",
305331
ParamType.INT, ParamContext.CLOUD);
@@ -407,6 +433,14 @@ enum ParamContext {CLOUD, ON_PREM, ALL, HIDDEN}
407433
new ParamDef("childTableEnabled", "true",
408434
ParamType.BOOL, ParamContext.CLOUD);
409435

436+
/**
437+
* Cloud only: true if enabled customer managed encryption key(CMEK), it is
438+
* disabled by default.
439+
*/
440+
public static ParamDef CMEK_ENABLED =
441+
new ParamDef("cmekEnabled", "false",
442+
ParamType.BOOL, ParamContext.CLOUD);
443+
410444
/* ------- End params ---------*/
411445

412446
/*
@@ -810,7 +844,6 @@ public void setNumRequestThreads(int numRequestThreads) {
810844
Integer.toString(numRequestThreads));
811845
}
812846

813-
814847
public int getNumAcceptThreads() {
815848
return getInt(NUM_ACCEPT_THREADS);
816849
}
@@ -820,6 +853,24 @@ public void setNumAcceptThreads(int numThreads) {
820853
Integer.toString(numThreads));
821854
}
822855

856+
public int getRequestThreadPoolSize() {
857+
return getInt(REQUEST_THREAD_POOL_SIZE);
858+
}
859+
860+
public void setRequestThreadPoolSize(int size) {
861+
paramVals.setProperty(REQUEST_THREAD_POOL_SIZE.paramName,
862+
Integer.toString(size));
863+
}
864+
865+
public int getKVThreadPoolSize() {
866+
return getInt(KV_THREAD_POOL_SIZE);
867+
}
868+
869+
public void setKVThreadPoolSize(int size) {
870+
paramVals.setProperty(KV_THREAD_POOL_SIZE.paramName,
871+
Integer.toString(size));
872+
}
873+
823874
public String getHostname() {
824875
return paramVals.getProperty(HOSTNAME.paramName);
825876
}
@@ -1024,10 +1075,6 @@ public int getErrorCreditMs() {
10241075
return getInt(ERROR_CREDIT_MS);
10251076
}
10261077

1027-
public int getErrorCacheSize() {
1028-
return getInt(ERROR_CACHE_SIZE);
1029-
}
1030-
10311078
public int getErrorCacheLifetimeMs() {
10321079
return getInt(ERROR_CACHE_LIFETIME_MS);
10331080
}
@@ -1080,6 +1127,10 @@ public int getTableCacheCheckIntervalSec() {
10801127
return getInt(TABLE_CACHE_CHECK_INTERVAL_SEC);
10811128
}
10821129

1130+
public boolean isCmekEnabled() {
1131+
return getBool(CMEK_ENABLED);
1132+
}
1133+
10831134
/* Helpers to convert a String property value to a type */
10841135
private boolean getBool(ParamDef def) {
10851136
String val = paramVals.getProperty(def.paramName, def.defaultVal);
@@ -1168,7 +1219,8 @@ KVStoreConfig makeTemplateKVStoreConfig() {
11681219
*/
11691220
int requestLimit = getInt(KV_REQUEST_LIMIT);
11701221
if (requestLimit < 0 || getAsync() == false) {
1171-
requestLimit = getNumRequestThreads();
1222+
requestLimit = Math.max(getNumRequestThreads(),
1223+
getRequestThreadPoolSize());
11721224
}
11731225
if (requestLimit > RequestLimitConfig.DEFAULT_MAX_ACTIVE_REQUESTS) {
11741226
kvConfig.setRequestLimit(

0 commit comments

Comments
 (0)