Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Discussion: change default database to PostgreSQL? #49

Closed
bflad opened this issue Jan 23, 2015 · 6 comments
Closed

Discussion: change default database to PostgreSQL? #49

bflad opened this issue Jan 23, 2015 · 6 comments

Comments

@bflad
Copy link
Owner

bflad commented Jan 23, 2015

Up for discussion for next major release of the cookbook, but please see note at top of MySQL/MariaDB integration page: https://confluence.atlassian.com/display/STASH/Connecting+Stash+to+MySQL

Of course you can always keep using MySQL by setting the necessary database attributes/data bag items.

MySQL and MariaDB, while supported by Stash Server, are currently not recommended especially in larger instances, due to inherent performance and deadlock issues that occur in this database engine under heavy load.

Affected systems may experience slow response times, deadlock errors and in extreme cases errors due to running out of database connections. These issues are intrinsic to MySQL and MariaDB (no other database engine in Stash's Supported platforms shares this behavior) and are due to the way MySQL and MariaDB perform row-level locking in transactions. See http://dev.mysql.com/doc/refman/5.0/en/innodb-deadlocks.html for some general information on this.

Stash Server does its best to work around the MySQL / MariaDB behavior - see issues STASH-4517, STASH-4701 and others for example. However, under very heavy load you will generally get better performance with any of the other database engines supported by Stash (such as PostgreSQL which is also freely available) than you will with MySQL or MariaDB. Please see Connecting Stash to an external database for instructions on migrating your data to one of these other engines.

@legal90
Copy link
Contributor

legal90 commented Jan 23, 2015

Yes, I think it's reasonable to use PostgreSQL by default in this cookbook.

By the way, I'm using PostgreSQL in my installation as well.

@linc01n
Copy link
Collaborator

linc01n commented Jan 26, 2015

I 👍 changing the default to postgresql.

I am using postgresql for my production stash as well.

@mrjcleaver
Copy link

+1

@patcon
Copy link
Collaborator

patcon commented Jul 7, 2015

+1

@legal90
Copy link
Contributor

legal90 commented Feb 4, 2016

It was done in #128. So, the request could be closed (cc: @linc01n )

@linc01n
Copy link
Collaborator

linc01n commented Feb 4, 2016

Yes. Starting from 4.0.0, the default database is set to postgreSQL

@linc01n linc01n closed this as completed Feb 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants