Using pfioh with mount-dir and pman with swarm¶
APIs (swarm)¶
- pfioh: mount-dir
- pman: swarm
- pfcon
- pfurl (curl like api)
Staring the services (swarm)¶
pfioh startup
bin/pfioh --forever --httpResponse --storeBase=/tmp/share --createDirsAsNeeded
pman startup
bin/pman --rawmode=1 --http --port=5010 --listeners=12
pfcon startup
bin/pfcon --forever --httpResponse
Add pfioh and pman IPs in pfcon.py
Gd_internalvar service:'moc'
Run the following command from pfurl
bin/pfurl --verb POST --raw --http <pfcon ip:port>/api/v1/cmd --httpResponseBodyParse --jsonwrapper 'payload' --msg '
{
"action":"coordinate",
"threadAction":true,
"meta-store":{
"meta":"meta-compute",
"key":"jid"
},
"meta-data":{
"remote":{
"key":"%meta-store"
},
"localSource":{
"path":"/tmp/large_datadir"
},
"localTarget":{
"path":"/tmp/large_localstore",
"createDir":true
},
"specialHandling":{
"op":"plugin",
"cleanup":true
},
"transport":{
"mechanism":"compress",
"compress":{
"encoding":"none",
"archive":"zip",
"unpack":true,
"cleanup":true
}
},
"service":"moc"
},
"meta-compute":{
"cmd":"$execshell $selfpath/$selfexec --prefix test- --sleepLength 0 /share/incoming /share/outgoing",
"auid":"rudolphpienaar",
"jid":"sa458",
"threaded":true,
"container":{
"target":{
"image":"fnndsc/pl-simpledsapp",
"cmdParse":true
},
"manager":{
"image":"fnndsc/swarm",
"app":"swarm.py",
"env":{
"meta-store":"key",
"serviceType":"docker",
"shareDir":"%shareDir",
"serviceName":"sa458"
}
}
},
"service":"moc"
}
}'
Using pfioh with swift and pman with OpenShift¶
APIs (OpenShift)¶
- pfioh: swift-store
- pman: openshift
- pfcon
- pfurl (curl like api)
Staring the services (OpenShift)¶
pfioh startup
bin/pfioh --forever --httpResponse --swift-storage --createDirsAsNeeded
pman startup
bin/pman --rawmode=1 --http --port=5010 --listeners=12 --container-env=openshift
pfcon startup
bin/pfcon --forever --httpResponse
Add pfioh and pman IPs in pfcon.py
Gd_internalvar service:'moc'
Run the following command from pfurl
bin/pfurl --verb POST --raw --http <pfcon ip:port>/api/v1/cmd --httpResponseBodyParse --jsonwrapper 'payload' --msg '
{
"action":"coordinate",
"threadAction":true,
"meta-store":{
"meta":"meta-compute",
"key":"jid"
},
"meta-data":{
"remote":{
"key":"%meta-store"
},
"localSource":{
"path":"/tmp/large_datadir"
},
"localTarget":{
"path":"/tmp/large_localstore",
"createDir":true
},
"transport":{
"mechanism":"compress",
"compress":{
"encoding":"none",
"archive":"zip",
"unpack":true,
"cleanup":true
}
},
"service":"moc"
},
"meta-compute":{
"cmd":"$execshell $selfpath/$selfexec --prefix test- --sleepLength 0 /share/incoming /share/outgoing",
"auid":"rudolphpienaar",
"jid":"os572",
"threaded":true,
"container":{
"target":{
"image":"fnndsc/pl-simpledsapp",
"cmdParse":false
}
},
"service":"moc"
}
}'