Scaling serverless Postgres: How we implement autoscaling
1–10 of 10 posts
Re: Scaling serverless Postgres: How we implement autoscaling
#2Re: Scaling serverless Postgres: How we implement autoscaling
#3Re: Scaling serverless Postgres: How we implement autoscaling
#4I’m CEO at Neon. Happy to answer questions.
Re: Scaling serverless Postgres: How we implement autoscaling
#5Why use Kubernetes if you’re in control of the cloud environment? What does it bring to the table? Why not firecracker?
As for k8s its an ongoing debate internally if the complexity worth the benefit. It helps us provision nodes but we have to fight it quite a bit too. It’s unclear we will keep it long term
Re: Scaling serverless Postgres: How we implement autoscaling
#6Re: Scaling serverless Postgres: How we implement autoscaling
#7I’m CEO at Neon. Happy to answer questions.
How does the network switch occur when you live migrate the VM? I see some mentioning of multus-cni, but I was not aware of anything in kubernetes that allowed you to migrate a network interface across nodes.
Re: Scaling serverless Postgres: How we implement autoscaling
#8Why use Kubernetes if you’re in control of the cloud environment? What does it bring to the table? Why not firecracker?
It's also the case that by staying with k8s we can take advantage of existing operational tooling, experience, and work, and can focus or development time on the important parts of this problem: runtime scaling, scheduling, and virtual machine management and not on cloud provider APIs and management.
In short, k8s gives us options that we like for the future, it's shortening the development cycle, and only getting in our way a below-average amount. At the same time--for the most part--we're building this with reasonable abstractions that would let us reuse our existing work if k8s becomes more trouble than it's worth.
Re: Scaling serverless Postgres: How we implement autoscaling
#9Very cool! Was there anything additional you had to do in the network stack to preserve active TCP connections? Being able to do a live migration without dropping connections is fantastic!
Few other options are:
* use some SDN instead of vxlan
* use QUICK instead of TCP in the internal network -- with QUICK we can change endpoint IP addresses on live connection
Re: Scaling serverless Postgres: How we implement autoscaling
#10Very cool! Was there anything additional you had to do in the network stack to preserve active TCP connections? Being able to do a live migration without dropping connections is fantastic!
There is a second network interface attached to each pod and that interfaces are connected to vxlan-based overlay network. So during the migration VM can keep the same ip address (APR will take care of traffic finding it's destination). That is simplest approach but has it's own downsides when overlay network grows big and painful to set up with some cloud SNI. Few other options are: * use some SDN instead of vxlan *…
QUIC seems like a solid simplification for sure.