Realizedd / TokenManager

An economy plugin for minecraft.
https://www.spigotmc.org/resources/tokenmanager.8610/
GNU General Public License v3.0
29 stars 47 forks source link

Pool settings #28

Closed N0TrixPM closed 5 years ago

N0TrixPM commented 5 years ago

Hello, i needn't on warnings of hikari while creating statements or connections, can u add a properties configuration of connection on config ? Like on config of LuckPerms:

pool-settings:

    # Sets the maximum size of the MySQL connection pool.
    # - Basically this value will determine the maximum number of actual
    #   connections to the database backend.
    # - More information about determining the size of connection pools can be found here:
    #   https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
    maximum-pool-size: 10

    # Sets the minimum number of idle connections that the pool will try to maintain.
    # - For maximum performance and responsiveness to spike demands, it is recommended to not set
    #   this value and instead allow the pool to act as a fixed size connection pool.
    #   (set this value to the same as 'maximum-pool-size')
    minimum-idle: 10

    # This setting controls the maximum lifetime of a connection in the pool in milliseconds.
    # - The value should be at least 30 seconds less than any database or infrastructure imposed
    #   connection time limit.
    maximum-lifetime: 1800000 # 30 minutes

    # This setting controls the maximum number of milliseconds that the plugin will wait for a
    # connection from the pool, before timing out.
    connection-timeout: 5000 # 5 seconds

    # This setting allows you to define extra properties for connections.
    # Like this:
    properties:
      useUnicode: true
      characterEncoding: utf8
      useSSL: false
Realizedd commented 5 years ago

What kind of an error are you getting? If it’s a SSL warning, you can modify the url in TokenManager config to disable it.

N0TrixPM commented 5 years ago

What kind of an error are you getting? If it’s a SSL warning, you can modify the url in TokenManager config to disable it.

Where you see at you're config configuring of url ?


    enabled: true
    hostname: 'localhost'
    port: '3306'
    username: '?????'
    password: '?????'
    database: '?????'
    table: 'tokenmanager'
N0TrixPM commented 5 years ago

OK, do not mind, i just use parameters after database, and that works.. but, can you add a section for that ? I closing issue.

(btw, why i need to check sources to know that ?)

Realizedd commented 5 years ago

Url was added in v3.2.0. I’m guessing you were using an older version.