protected function buildClusterSeed($server)
    {
        $parameters = [];

        foreach (['database', 'timeout', 'prefix'] as $parameter) {
            if (! empty($server[$parameter])) {
                $parameters[$parameter] = $server[$parameter];
            }
        }

        if (! empty($server['password'])) {
            $parameters['auth'] = $server['password'];
        }

        return $server['host'].':'.$server['port'].'?'.http_build_query($parameters);
    }