-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEPRECATED: Database connection pool refactoring #146
Draft
enricovianello
wants to merge
51
commits into
develop
Choose a base branch
from
STOR-1333
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
- Added new configuration keys into storm.properties. Deprecated others. - Also moved some timer task out of catalogs into an executor service
enricovianello
force-pushed
the
STOR-1333
branch
from
February 22, 2021 08:28
708b662
to
7aaa9f9
Compare
enricovianello
force-pushed
the
STOR-1333
branch
from
August 2, 2021 15:15
b90a476
to
97e6a96
Compare
enricovianello
force-pushed
the
STOR-1333
branch
2 times, most recently
from
September 6, 2021 12:56
28c90cc
to
1fe8931
Compare
enricovianello
force-pushed
the
STOR-1333
branch
from
September 6, 2021 13:53
1fe8931
to
9b925ce
Compare
enricovianello
force-pushed
the
STOR-1333
branch
from
January 27, 2022 00:05
894a8bc
to
efa91fb
Compare
Moved source to Java 11 Added NamespaceInfoEndpoint
enricovianello
force-pushed
the
STOR-1333
branch
2 times, most recently
from
January 31, 2022 13:49
b4e5c50
to
71809d6
Compare
enricovianello
force-pushed
the
STOR-1333
branch
from
January 31, 2022 13:57
71809d6
to
3f38f09
Compare
Moved to ci-template-java11 image
enricovianello
changed the title
WIP: Database connection pool refactoring
DEPRECATED: Database connection pool refactoring
Jul 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Database connection pool refactoring
Links
CI: https://ci.cloud.cnaf.infn.it/view/Failed/job/storm-backend-server/view/change-requests/job/PR-146/
rpm has been deployed to
omii005-vm03.cnaf.infn.it
CI tests: https://ci.cloud.cnaf.infn.it/view/storm/job/storm-testsuite-omii005-vm03-tests/
Target
Summary
The main actions done during this refactoring task are the following:
storm_be_ISAM
databaseConnection
objects used into sigleton catalogs to accessstorm_db
database with the same connection poolstorm.properties
file related to database connectionTimerTask
used into catalogs to transit requests to a final status to anExecutorService
started fromMain
Changes on pom.xml
Dependencies:
Extra or related changes
A huge name refactoring has been done for a lot of storm.properties properties. For example all the names have been cleared of dot and minus. The unique separator character still allowed is the underscore. The section related to the database connection, in particular, has been also heavily refactored. This is the updated list of storm.properties:
srm_endpoints
host
andport
. This is used by StoRM to understand if a SURL is valid (managed or not). The first endpoint of this list is considered the default public SRM endpoint. Example:srm_endpoints.1.host = fe-storm.example.org
srm_endpoints.1.port = 8444
storm.service.FE-public.hostname
storm.service.port
storm.service.SURL.endpoint
If you want to accept SURL with the ip address instead of the FQDN hostname you have to add the proper endpoint (E.g. IPv4: srm://192.168.100.12:8444/srm/managerv2 or IPv6: srm://[2001:0db8::1428:57ab]:8444/srm/managerv2.
storm.service.SURL.default-ports
db.username
db.password
db.hostname
db.port
db.properties
db.pool.size
db.pool.min_idle
db.pool.max_wait_millis
db.pool.test_on_borrow
db.pool.test_while_idle
rest.port
rest.max_threads
rest.max_queue_size
sanity_checks_enabled
xmlrpc.port
xmlrpc.max_threads
xmlrpc.max_queue_size
security_enabled
security_token
du.enabled
du.enable_parallel_tasks
du.initial_delay
du.tasks_interval
directories.automatic_creation
directories.writeperm
pinlifetime.default
pinlifetime.maximum
extraslashes.file
extraslashes.rfio
extraslashes.gsiftp
extraslashes.root
gc_pinnedfiles_cleaning_delay
gc_pinnedfiles_cleaning_interval
files.default_filesize
files.default_lifetime
files.default_overwrite
files.default_storagetype
requests_scheduler.core_pool_size
requests_scheduler.max_pool_size
requests_scheduler.queue_size
ptp_scheduler.core_pool_size
ptp_scheduler.max_pool_size
ptp_scheduler.queue_size
ptg_scheduler.core_pool_size
ptg_scheduler.max_pool_size
ptg_scheduler.queue_size
bol_scheduler.core_pool_size
bol_scheduler.max_pool_size
bol_scheduler.queue_size
requests_picker_agent.delay
requests_picker_agent.interval
requests_picker_agent.max_fetched_size
synch_ls.max_entries
synch_ls.default_all_level_recursive
synch_ls.default_num_levels
synch_ls.default_offset
completed_requests_agent.enabled
completed_requests_agent.delay
completed_requests_agent.interval
completed_requests_agent.purge_size
completed_requests_agent.purge_age
inprogress_requests_agent.delay
inprogress_requests_agent.interval
inprogress_requests_agent.ptp_expiration_time
skip_ptg_acl_setup
hearthbeat.bookkeeping_enabled
hearthbeat.performance_measuring_enabled
hearthbeat.period
hearthbeat.performance_logbook_time_interval
hearthbeat.performance_glance_time_interval
info_quota_refresh_period
http_turl_prefix
server_pool_status_check_timeout
abort_maxloop
ping_properties_filename
This name refactoring increases the correspondence between property names and Puppet module parameters for storm::backend class. This update must be related to an update of storm puppet module in order to support all the new property names. The v4.0.0 is the version of storm puppet module related to this task.
Metrics
Added metrics:
Added lines to metrics log:
TO-DO