During startup of our WPF desktop app I use InfluxDBClient.PingAsync()
to determine whether the database is already running. If it isn’t then I start the process (influxd.exe).
This method takes 4s before it times out, so is impacting the startup time of our desktop app. Is there another way to determine if the database is already running? I thought about checking whether the process is running, but it is started using:
var processInfo = new ProcessStartInfo(influxFilepath);
processInfo.CreateNoWindow = true;
This means it doesn’t appear in Task Manager, so I’m assuming Process.GetProcessByName()
wouldn’t find it either.