Basho\Riak\Node\Builder::buildCluster PHP Method

buildCluster() public method

Build node objects configured to listen on the same port but different hosts. Commonly used in staging and production environments where you have multiple Riak nodes on multiple machines / vms.
public buildCluster ( array $hosts = ['localhost'] ) : Node[]
$hosts array
return Basho\Riak\Node[]
    public function buildCluster(array $hosts = ['localhost'])
    {
        $nodes = [];
        foreach ($hosts as $host) {
            $nodes[] = $this->atHost($host)->build();
        }
        return $nodes;
    }