Skip to content

Commit e853b15

Browse files
committed
Add rwl_pool_mix_use/lifetime to oltp workload session pool
1 parent adea524 commit e853b15

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

oltp/oltp.rwl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ rwl_daily_html := "daily.html";
387387
# You can modify the aggresiveness of logons by changing the time
388388
# OCI waits until it disconnects an unused session in the pool
389389
# rwl_pool_release := 5.0; # default is 5.0
390+
# The next two will set OCI_ATTR_SPOOL_MAX_USE_SESSION or
391+
# OCI_ATTR_SPOOL_MAX_LIFETIME_SESSION. Default are not set (null)
392+
# implying there will be no max use or lifetime
393+
# rwl_pool_max_use;
394+
# rwl_pool_max_lifetime;
390395

391396
# By default, an instance level awr report is gathered for all
392397
# instances that are open. If you also want to create a global

oltp/parameters.rwl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 10-oct-2023 - sessionpool max use/lifetime
56
# bengsig 31-jul-2023 - rategradientstep
67
# bengsig 17-jun-2023 - add mtit_partitions parameter
78
# bengsig 23-may-2024 - Fix s24 full scan message
@@ -67,6 +68,8 @@ double rampfactor := 0.1;
6768
integer rwl_min_pool := 3;
6869
integer rwl_max_pool := 10;
6970
double rwl_pool_release := 5.0;
71+
integer rwl_pool_max_use;
72+
integer rwl_pool_max_lifetime;
7073
double max_sessionwait := 30; # how long to wait max to get a session
7174

7275
# Reduce if you want more parsing, increase if you want less
@@ -631,6 +634,8 @@ if show_changed_values then
631634
end if;
632635
printline "rwl_max_pool="||rwl_max_pool;
633636
printline "rwl_pool_release="||rwl_pool_release;
637+
printf "rwl_pool_max_use=%Nd\n", rwl_pool_max_use;
638+
printf "rwl_pool_max_lifetime=%Nd\n", rwl_pool_max_lifetime;
634639
else
635640
if pool_type = "drcp" then
636641
printline "normal pool uses drcp";

oltp/run_user.rwl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 10-oct-2024 - rwl_pool_max_use/lifetime
56
# bengsig 11-sep-2023 - max_sessionwait
67
# bengsig 21-mar-2023 - connection pool
78
# bengsig 25-oct-2022 - External control
@@ -57,6 +58,8 @@ $if $RWLOLTP_SIDE = "2" $then
5758
$if pool_type = "sessionpool" $then
5859
sessionpool rwl_min_pool .. rwl_max_pool
5960
release rwl_pool_release
61+
$if rwl_pool_max_use is not null $then release count rwl_pool_max_use $endif
62+
$if rwl_pool_max_lifetime is not null $then release every rwl_pool_max_lifetime $endif
6063
$if xc_enabled $then
6164
wait xc_sessionwait then call_failure("No session available due to ORA-" oraerror)
6265
$else
@@ -138,6 +141,8 @@ $else
138141
$if pool_type = "sessionpool" $then
139142
sessionpool rwl_min_pool .. rwl_max_pool
140143
release rwl_pool_release
144+
$if rwl_pool_max_use is not null $then release count rwl_pool_max_use $endif
145+
$if rwl_pool_max_lifetime is not null $then release every rwl_pool_max_lifetime $endif
141146
$if xc_enabled $then
142147
wait xc_sessionwait then call_failure("No session available due to ORA-" oraerror)
143148
$else

0 commit comments

Comments
 (0)