Giter Site home page Giter Site logo

Connection keep-alive about dbeaver HOT 14 CLOSED

serge-rider avatar serge-rider commented on May 15, 2024
Connection keep-alive

from dbeaver.

Comments (14)

serge-rider avatar serge-rider commented on May 15, 2024 14

keep-alive-config

from dbeaver.

serge-rider avatar serge-rider commented on May 15, 2024 3

Keep-alive makes huge sense if you are working in transactional mode. Disconnect ends current transaction (with rollback), all not-commited changes are lost.
Also, in some environments inactive connection timeout is very small (1-5 minutes). So Kepp-Alive feature is still very wanted by some people.
Although auto-reconnect is also a wanted feature.

from dbeaver.

hailin84 avatar hailin84 commented on May 15, 2024 1

So, is that available to test connections periodically? We have firewall, so connections lost after a few minutes if no operation commit, it would be fine if DBeaver can test connections on idle. As I know, many Datasource can do this, like HikariCP.

from dbeaver.

adaliszk avatar adaliszk commented on May 15, 2024

Hmm, I think the autoreconnect should be better option for that, because at my Company if you just pinging the server then the whole keep-alive wont work. We have multiple databases with firebird and most of them recreaded or least restarted on each day and the server is not stoped, so the ping has a result. The restart/recreate need only a few seconds but after that he connected driver wont able to make a transaction. I think if the program detect a disconnect answer from a transation start then it can be reconnect to the database.

from dbeaver.

adaliszk avatar adaliszk commented on May 15, 2024

Oh, I did not know that the inactive time can be that small :) In that case it should be helpfull a lot this feature.

from dbeaver.

uesleilima avatar uesleilima commented on May 15, 2024

I'm looking forward this keep alive feature, my organisation firewall timeout policy is driving me crazy with my oracle connections...

from dbeaver.

NullpointerForever avatar NullpointerForever commented on May 15, 2024

I need this feature too :-)

from dbeaver.

Anderseta avatar Anderseta commented on May 15, 2024

Can't wait for this!

from dbeaver.

Anderseta avatar Anderseta commented on May 15, 2024

Amazing! Thank you a lot

from dbeaver.

NullpointerForever avatar NullpointerForever commented on May 15, 2024

Thank you :-)

from dbeaver.

ssyang0102 avatar ssyang0102 commented on May 15, 2024

Perfect!

from dbeaver.

sergei3000 avatar sergei3000 commented on May 15, 2024

This is a great option! But I have two questions about how to use it.

  1. Do the seconds in it show how often connection is renewed? Or do they show for how long the connection is kept alive since the last action?

  2. After turning this option on and setting the number of seconds should I set a ping query in the driver's options (I'm using MS JDBC driver to connect to Azure SQL Database from Ubuntu):
    dbeaver_question

from dbeaver.

serge-rider avatar serge-rider commented on May 15, 2024
  1. The first (interval between ping query execution).
  2. Usually you don't have to set ping query - by default DBeaver will use JDBC API function for pinging.
    However it can be unsupported by some drivers - in this case it makes sense.

from dbeaver.

rsmunix avatar rsmunix commented on May 15, 2024

Perfect!

from dbeaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.