-
Notifications
You must be signed in to change notification settings - Fork 2
DEPRECATED: Database connection pool refactoring #146
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
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.
+39,531
−50,509
Conversation
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
- Added new configuration keys into storm.properties. Deprecated others. - Also moved some timer task out of catalogs into an executor service
708b662 to
7aaa9f9
Compare
b90a476 to
97e6a96
Compare
28c90cc to
1fe8931
Compare
1fe8931 to
9b925ce
Compare
894a8bc to
efa91fb
Compare
Moved source to Java 11 Added NamespaceInfoEndpoint
b4e5c50 to
71809d6
Compare
71809d6 to
3f38f09
Compare
Moved to ci-template-java11 image
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