DEPRECATED: Database connection pool refactoring - #146
Draft
enricovianello wants to merge 51 commits into
Draft
enricovianello wants to merge 51 commits into
enricovianello wants to merge 51 commits into
Conversation
- 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
This file contains hidden or 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
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.itCI 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_ISAMdatabaseConnectionobjects used into sigleton catalogs to accessstorm_dbdatabase with the same connection poolstorm.propertiesfile related to database connectionTimerTaskused into catalogs to transit requests to a final status to anExecutorServicestarted fromMainChanges 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_endpointshostandport. 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.orgsrm_endpoints.1.port = 8444storm.service.FE-public.hostnamestorm.service.portstorm.service.SURL.endpointIf 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-portsdb.usernamedb.passworddb.hostnamedb.portdb.propertiesdb.pool.sizedb.pool.min_idledb.pool.max_wait_millisdb.pool.test_on_borrowdb.pool.test_while_idlerest.portrest.max_threadsrest.max_queue_sizesanity_checks_enabledxmlrpc.portxmlrpc.max_threadsxmlrpc.max_queue_sizesecurity_enabledsecurity_tokendu.enableddu.enable_parallel_tasksdu.initial_delaydu.tasks_intervaldirectories.automatic_creationdirectories.writepermpinlifetime.defaultpinlifetime.maximumextraslashes.fileextraslashes.rfioextraslashes.gsiftpextraslashes.rootgc_pinnedfiles_cleaning_delaygc_pinnedfiles_cleaning_intervalfiles.default_filesizefiles.default_lifetimefiles.default_overwritefiles.default_storagetyperequests_scheduler.core_pool_sizerequests_scheduler.max_pool_sizerequests_scheduler.queue_sizeptp_scheduler.core_pool_sizeptp_scheduler.max_pool_sizeptp_scheduler.queue_sizeptg_scheduler.core_pool_sizeptg_scheduler.max_pool_sizeptg_scheduler.queue_sizebol_scheduler.core_pool_sizebol_scheduler.max_pool_sizebol_scheduler.queue_sizerequests_picker_agent.delayrequests_picker_agent.intervalrequests_picker_agent.max_fetched_sizesynch_ls.max_entriessynch_ls.default_all_level_recursivesynch_ls.default_num_levelssynch_ls.default_offsetcompleted_requests_agent.enabledcompleted_requests_agent.delaycompleted_requests_agent.intervalcompleted_requests_agent.purge_sizecompleted_requests_agent.purge_ageinprogress_requests_agent.delayinprogress_requests_agent.intervalinprogress_requests_agent.ptp_expiration_timeskip_ptg_acl_setuphearthbeat.bookkeeping_enabledhearthbeat.performance_measuring_enabledhearthbeat.periodhearthbeat.performance_logbook_time_intervalhearthbeat.performance_glance_time_intervalinfo_quota_refresh_periodhttp_turl_prefixserver_pool_status_check_timeoutabort_maxloopping_properties_filenameThis 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