Advertisement
keith_shannon

dbconfig.mysql.xml.erb

May 18th, 2015
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <jira-database-config>
  4. <name>defaultDS</name>
  5. <delegator-name>default</delegator-name>
  6. <database-type>mysql</database-type>
  7. <jdbc-datasource>
  8. <url><%= scope.lookupvar('jira::dburl') %>?useUnicode=true&amp;characterEncoding=UTF8&amp;sessionVariables=storage_engine=InnoDB</url>
  9. <driver-class><%= scope.lookupvar('jira::dbdriver') %></driver-class>
  10. <username><%= scope.lookupvar('jira::dbuser') %></username>
  11. <password><%= scope.lookupvar('jira::dbpassword') %></password>
  12. <pool-size><%= scope.lookupvar('jira::poolsize') %></pool-size>
  13. <pool-min-size><%= scope.lookupvar('jira::poolMinSize') %></pool-min-size>
  14. <pool-max-size><%= scope.lookupvar('jira::poolMaxSize') %></pool-max-size>
  15. <pool-max-wait><%= scope.lookupvar('jira::poolMaxWait') %></pool-max-wait>
  16. <validation-query><% if @validationQuery %><%= @validationQuery %><% else %>scope.lookupvar('jira::validationQuery')<% end %></validation-query>
  17. <min-evictable-idle-time-millis><%= scope.lookupvar('jira::minEvictableIdleTime') %></min-evictable-idle-time-millis>
  18. <time-between-eviction-runs-millis><% if @timeBetweenEvictionRuns %><%= @timeBetweenEvictionRuns %><% else %><%= scope.lookupvar('jira::timeBetweenEvictionRuns') %><% end %></time-between-eviction-runs-millis>
  19. <pool-max-idle><%= scope.lookupvar('jira::poolMaxIdle') %></pool-max-idle>
  20. <pool-remove-abandoned><%= scope.lookupvar('jira::poolRemoveAbandoned') %></pool-remove-abandoned>
  21. <pool-remove-abandoned-timeout><%= scope.lookupvar('jira::poolRemoveAbandonedTimout') %></pool-remove-abandoned-timeout>
  22. <pool-test-while-idle><%= scope.lookupvar('jira::poolTestWhileIdle') %></pool-test-while-idle>
  23. <validation-query-timeout>3</validation-query-timeout>
  24. </jdbc-datasource>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement