Nico Braun

Results 70 comments of Nico Braun

Well, I just noticed I was too quick to judge. It is true that it throws a bunch of warnings at the beginning because the old leader isn't around any...

`WithAdress` didn't work with dns from my testing. You can use dns in `WithCluster`, but not in `WithAddress`. But it seems to do a 1 time lookup and store the...

I will experiment with that, thanks for the hint. But I think its not working because it wants to bind a network interface. You cannot bind a network interface with...

It stores dns names in the config with this. ``` app.WithTLS(app.SimpleTLSConfig(cert, pool)), app.WithAddress(net.JoinHostPort(nodeDNS, sqlPort)), app.WithCluster(statefulZeroDNS), ``` But I have issues with the nodes accepting each other's certificate. ``` app-1 |...

The code looks like this. ```go cert, err := tls.LoadX509KeyPair("cluster.crt", "cluster.key") if err != nil { return err } data, err := ioutil.ReadFile("cluster.crt") if err != nil { return err...

It works when they all have the same certificate. They all start up OK and find each other with host names. There are still some issues though. When they start...

It works when not using `func (a *App) Ready(ctx context.Context) error` to wait before responding to health checks with an ok status, but its not really nice imo. Perhaps it...

I started from that code. The code has the same issue, I would assume, because the net listener only starts to listen on the http port after Ready unblocks. But...

The compose file to mimic a statefulsets behaviour looks like this, in a nutshell. I have removed some fields from the services for brevity. But the important parts, healthcheck and...

I have created a repo here. You should be able to spin it the code up with `make` https://github.com/bluebrown/dqlite-experiment