src/Riak/Node/Builder.php
public function buildCluster(array $hosts = ['localhost'])
    {
        $nodes = [];
        foreach ($hosts as $host) {
            $nodes[] = $this->atHost($host)->build();
        }

        return $nodes;
    }
public function buildCluster(array $hosts = ['localhost'])
    {
        $nodes = [];
        foreach ($hosts as $host) {
            $nodes[] = $this->atHost($host)->build();
        }

        return $nodes;
    }
public function buildCluster ( array $ hosts = [ 'localhost' ] ) { $ nodes = [ ] ; foreach ( $ hosts as $ host ) { $ nodes [ ] = $ this -> atHost ( $ host ) -> build ( ) ; } return $ nodes ; }
Build distributed cluster

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.

@param array $hosts
@return Node[]
Build distributed cluster