def __init__(self, addr, default_backend): dm.__init__(self, { "core": 0, "addr": addr, "port": 11911, }) self.merge(default_backend)
def __init__(self, ipaddr, backend, net, cores=[], port=11911): self.cores = cores self.core_ix = 0 dm.__init__(self, { "core" : self.cores[core_ix], "addr" : ipaddr, "port" : port, "net" : net }) self.merge(backend)
def __init__(self, shard_proto_, count_=1): dm.__init__( self, { "shards": [ # shard_proto_.value() ], }) for i in range(0, count_): self._value["shards"].append(shard_proto_.step(i).value())
def __init__(self, pfx, accession=0): self.pfx = pfx self.accession = accession self.devices = candidates(pfx) if len(self.devices) <= accession: raise RuntimeError("No dax device in {} for accession {}".format( self.devices, accession)) dm.__init__(self, [{ "path": self.devices[accession], "addr": 0x9000000000 + 0x1000000000 * accession }])
def __init__(self, pfx, accession=0): self.pfx = pfx self.accession = accession if not os.access(pfx, os.R_OK): raise RuntimeError("path {} not readable".format(pfx)) if not os.access(pfx, os.W_OK): raise RuntimeError("path {} not writeable".format(pfx)) dm.__init__(self, [{ "path": "{}/a{}".format(pfx, accession), "addr": 0x9000000000 + 0x1000000000 * accession }])
def __init__(self, core=1): dm.__init__( self, { "ado_path": "{}/bin/ado".format(install_prefix), # Special case for CPUs with less than 8 cores # CPU range was 6-8, but will lock-up on 4-core system when clamped to 3-3 and client also clamped to 3 "resources": { "ado_cores": (core_count() < 8 and core_range(1, 2) or core_range(core + 5, core + 5 + 2)), "ado_manager_core": core_clamp(core) } })
def __init__(self, ipaddr, backend, cores=[], port=11911): # # steppable itens # self.ipaddr = ipaddr self.port = port self.backend = backend self.cores = cores self.core_ix = 0 dm.__init__(self, { "core" : self.cores[self.core_ix], "addr" : ipaddr, "port" : port, }) self.merge(backend)
def __init__(self): dm.__init__(self, { "ado_plugins": ["libcomponent-adoplugin-testing.so"], })
def __init__(self): dm.__init__(self, { "net_providers": "verbs" })
def __init__(self): dm.__init__(self, { "net_providers": "sockets" })
def __init__(self): dm.__init__(self, {"default_backend": "hstore"})
def __init__(self, region=1): dm.__init__(self, {"path": "/mnt/pmem%d" % (region,)})
def __init__(self, region=0, accession=0): dm.__init__(self, {"path": "/dev/dax%d.%d" % (region, accession)})
def __init__(self, shard_proto_): dm.__init__(self, { "shards": [shard_proto_.value()], })
def __init__(self): dm.__init__(self, {"cert": "%s/certs/mcas-cert.pem" % (install_prefix, )})
def __init__(self): dm.__init__(self, {"cert": "{}/certs/mcas-cert.pem".format(install_prefix)})