scaling Mysql Database in kubernetes

288 views
Skip to first unread message

Montassar Dridi

unread,
Nov 23, 2016, 6:27:02 PM11/23/16
to Kubernetes developer/contributor discussion
Besides Vitess, what is a recommended way for production to scale database pods in kubernetes 

Prashanth B

unread,
Nov 23, 2016, 6:45:45 PM11/23/16
to Montassar Dridi, Kubernetes developer/contributor discussion
What do you mean by "scale", simply add more instances or deploy pods in some scalable topology (i.e scale group membership)? 

RCs/deployments are the fastest way to scale up, but not necessarily the best or safest when it comes to protecting state (eg: https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd). In comparison, StatefulSets are slower to scale but make it easier to deploy interesting topologies (eg: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/testing-manifests/petset/mysql-galera/petset.yaml). 

Don't deploy either example to production without prior testing.

On Wed, Nov 23, 2016 at 3:27 PM, Montassar Dridi <montass...@gmail.com> wrote:
Besides Vitess, what is a recommended way for production to scale database pods in kubernetes 

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/c1315986-5e6b-4c51-a41a-bd293e4edc66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Montassar Dridi

unread,
Nov 23, 2016, 7:07:41 PM11/23/16
to Kubernetes developer/contributor discussion, montass...@gmail.com
thanks for your help 
both solutions requires a lot of testing and maintenance, in comparison with scaling and deploying an application in kubernetes.
I was just looking for another straight forward and easy way to deploy and scale a database before testing the solutions you mentioned 


On Wednesday, November 23, 2016 at 6:45:45 PM UTC-5, Prashanth B wrote:
What do you mean by "scale", simply add more instances or deploy pods in some scalable topology (i.e scale group membership)? 

RCs/deployments are the fastest way to scale up, but not necessarily the best or safest when it comes to protecting state (eg: https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd). In comparison, StatefulSets are slower to scale but make it easier to deploy interesting topologies (eg: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/testing-manifests/petset/mysql-galera/petset.yaml). 

Don't deploy either example to production without prior testing.
On Wed, Nov 23, 2016 at 3:27 PM, Montassar Dridi <montass...@gmail.com> wrote:
Besides Vitess, what is a recommended way for production to scale database pods in kubernetes 

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

Prashanth B

unread,
Nov 23, 2016, 7:41:18 PM11/23/16
to Montassar Dridi, Kubernetes developer/contributor discussion
There's also a charts repo, if you're looking for easy templated deployment: https://github.com/kubernetes/charts/tree/master/stable

To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/7aec64f8-283f-491e-b99e-40b7288f50bc%40googlegroups.com.

Montassar Dridi

unread,
Nov 28, 2016, 2:38:36 PM11/28/16
to Kubernetes developer/contributor discussion, montass...@gmail.com
Hello I tried to test with StatefulSets but I get this error
 API version "apps/v1beta1" isn't supported
I think is not been release yet but Is there a way to enable on my GKE and play with it

On Wednesday, November 23, 2016 at 7:41:18 PM UTC-5, Prashanth B wrote:
There's also a charts repo, if you're looking for easy templated deployment: https://github.com/kubernetes/charts/tree/master/stable
On Wed, Nov 23, 2016 at 4:07 PM, Montassar Dridi <montass...@gmail.com> wrote:
thanks for your help 
both solutions requires a lot of testing and maintenance, in comparison with scaling and deploying an application in kubernetes.
I was just looking for another straight forward and easy way to deploy and scale a database before testing the solutions you mentioned 

On Wednesday, November 23, 2016 at 6:45:45 PM UTC-5, Prashanth B wrote:
What do you mean by "scale", simply add more instances or deploy pods in some scalable topology (i.e scale group membership)? 

RCs/deployments are the fastest way to scale up, but not necessarily the best or safest when it comes to protecting state (eg: https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd). In comparison, StatefulSets are slower to scale but make it easier to deploy interesting topologies (eg: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/testing-manifests/petset/mysql-galera/petset.yaml). 

Don't deploy either example to production without prior testing.

On Wed, Nov 23, 2016 at 3:27 PM, Montassar Dridi <montass...@gmail.com> wrote:
Besides Vitess, what is a recommended way for production to scale database pods in kubernetes 

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/c1315986-5e6b-4c51-a41a-bd293e4edc66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

Eric Tune

unread,
Nov 28, 2016, 3:25:01 PM11/28/16
to Montassar Dridi, Kubernetes developer/contributor discussion
Kubernetes 1.5 is not released yet. So, you can't use StatefulSet on GKE yet.
> https://groups.google.com/d/msgid/kubernetes-dev/518241c0-2128-43c2-a04f-9ac58c34efdb%40googlegroups.com.

Montassar Dridi

unread,
Nov 28, 2016, 4:34:33 PM11/28/16
to Kubernetes developer/contributor discussion, montass...@gmail.com

thanks for the update 
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages