Yes, you're right. H2 is an embedded DB and the lifecycle of the DB is tied to the lifecycle of the host JVM process.
BTW *you might not* want to run GoServer in Spot instance, whereas the Go Agents can be run on spot as it's perfectly fine for it to come and go. In terms of cost too, it would be beneficial. Assuming you were planning to use RDS for Postgres or other DBs Eg. r3.large would cost $0.166 vs db.r3.large would cost $0.250. H2 also scales really well. We've been using it for 5+ years without any issues on 100s of pipelines + 1000s of avg. runs on each of them. On Fri, Jun 9, 2017 at 5:27 AM, <[email protected]> wrote: > Could anyone tell me how to stop h2 db gracefully and how long does it > take to shutdown? > > It seems to me h2 is embedded DB, then does '/etc/init.d/go-server stop' > does the job? > > Thanks! > > > On Friday, June 9, 2017 at 9:54:46 AM UTC+10, [email protected] > wrote: >> >> Thanks Varsha >> >> So just installing go-server pulls h2 DB and no need to worry about DB? >> >> Having said that, it may cause issues with my usage - I use AWS spot EC2 >> instance and I do not know how h2 handles spot instance termination notice. >> >> And unfortunately we are a small startup so can't go paid addon. I will >> check how h2 is reliable and may need to switch to other CI/CD if I can't >> trust h2. >> >> >> Thanks! >> >> On Thursday, June 8, 2017 at 4:37:54 PM UTC+10, Varsha Varadarajan wrote: >>> >>> Hi, >>> >>> PostgreSQL is a paid addon. The default db that GoCD uses is h2 now. You >>> can find the details about the addon here >>> <https://extensions-docs.gocd.org/postgresql/current/>. >>> >>> Thanks, >>> Varsha >>> >>> On Thursday, 8 June 2017 10:09:37 UTC+5:30, [email protected] >>> wrote: >>>> >>>> Hi >>>> >>>> I used to use GoCD a couple of years ago, then stopped. Now I'd like to >>>> use it again. >>>> >>>> I installed go-server on Ubuntu 16.04 server, by following: >>>> https://docs.gocd.org/current/installation/install/server/li >>>> nux.html#debian-based-distributions-ie-ubuntu >>>> >>>> It installed Version 17.5.0-5095. >>>> >>>> After installation and start by doing "/etc/init.d/go-server start", I >>>> issued: >>>> >>>> telnet localhost 8154 >>>> telnet localhost 8153 >>>> >>>> And it seems to me there is nothing to listen those ports. >>>> >>>> Could anyone point me what am I missing ? >>>> >>>> Additional questions. IIRC, go-server used to use DB and my choice of >>>> DB was PostgreSql. I couldn't find any database requirement from the new >>>> documentation. Do I need database? Where can I find DB configuration >>>> documentation? >>>> >>>> >>>> Thanks! >>>> >>>> - J >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Ashwanth Kumar / ashwanthkumar.in -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
