Corda Nodes in Headless Mode - corda

is there some way to run the corda samples in headless mode in both linux and microsoft? the individual nodes such as Bank of Corda, Notary, etc are popping. When the command line/dialog are closed, the nodes die. Can someone advise, please? Thank you.
Nathan Aw

When running the nodes using the runnodes script, add the --headless flag (e.g. build/nodes/runnodes --headless) to start all the nodes in the main terminal.

Related

What is the recommended way of shutting down Corda nodes on a network?

For a set of nodes running on a network, what is the recommended way to gracefully shut them down versus simply killing the processes?
The best way would be to deploy your nodes following the instructions here - https://docs.corda.net/deploying-a-node.html
This way, in Linux for example, you could:
Start a node with
>systemctl start corda
And stop a node with
>systemctl stop corda
Likewise, with Windows, you would run Corda as a Windows service and stop it as such.
Another thing to keep in mind when shutting down nodes is the state of any in-flight flows. Corda provides a draining mode which can be read about here in the Draining Mode section. This can be enabled via RPC, see the docs here

Corda Notary Cluster in Open Source

Is it possible to configure/use a Notary Cluster in Open Source version? Or is it available only in R3 Corda (former Enterprise)?
There is notary Demo which may help you out in here.
Link:
https://github.com/corda/corda/tree/master/samples/notary-demo
It will just help get your head around it.

Glusterfs Peer Replication

I'm planning to implement glusterfs cluster with nodes (Drupal servers) with out client. I'm experiencing replication problem with in the peer.
Does nodes in glusterfs cluster replicate data each other or should we compulsory need gluster clients? Usually my files will be images and some flv's. Please suggest me any other tool which is similar to Glusterfs.
Thanks,
Swaroop.
Yes you can replicate the nodes each other by installing the client in the same node. Following links are helpful for you :
http://gopukrish.wordpress.com/glusterfs/
http://gopukrish.wordpress.com/high-availability-load-balanced-wordpress-site/

devstack multi node installation

I have 3 nodes which i am using for multi node setup. I am thinking of following the below structure
Controller: keystone, horizon, g-reg, g-api, n-api, n-crt, n-sch, n-cond, n-cauth, n-obj, n-novnc, n-xvnc, c-api, c-sch (this node will have mysql and rabbitmq as well)
Network: q-svc, q-agt, q-dhcp, q-l3, q-meta, quantum
Compute: n-cpu, c-vol
I have a few questions. 1. In Compute node, do i need to keep n-api? Also what else is needed apart from n-api and c-vol? Is q-agt needed in compute? 2. Will i need c-api along with c-vol? Does compute node need rabbit mq installed?
Q1)
You don't want the nova-api on the compute nodes generally. It's better on the controller.
Nova api makes use of pasted hard system credentials and you don't want that paste file exposed on any node that a user may compromise with a hypervisor escape.
nova-compute and nova-volume is all you probably need. they do communicate with the scheduler over rabbitmq so make sure that's working =P
Q2)
You don't NEED cinder to run an openstack cloud, though I see no reason not to include it.
I don't know what impact disabling cinder has on the devstack stack.sh script, I've never done it.
As per RabbitMQ see above answer.

openMPI Master Node Setup Configuration

I'm trying to setup a relatively small cluster (36 cores) with openMPI and I've run into a small problem. I have all the openMPI libraries and any dependencies installed and running correctly (I can run a hello world MPI program on each computer as the localhost). The problem is that I can't seem to find too much documentation on how to get the computers to execute a program together. I can do the mpirun --hostfile command but I don't want to have to specify the host file every time I execute a job. Plus, future users won't have access to all the IP addresses on the cluster all the time. They and I expect to be able execute mpirun -np 20 programFile with no problem. Can someone provide some guidance on what I need to do from this point? To be fair, I've only taken one class in college where we wrote parallel programs with MPI, but they never showed us how to SETUP a new cluster with openMPI. I appreciate any advice you guys can give. I've found this guide through my searches MPICH_Cluster_Setup which would be great if it was openMPI. Is there a similar guide out there that pertains to openMPI?
You should use a cluster scheduler like Torque, SLURM, or SGE (all are free/FOSS). These lets users reserve nodes for their use, and all "talk" to open MPI to tell it what nodes to use for that users job (so that they don't have to use a hostfile).
Per the MPICH cluster setup doc, it's just about exactly what you need for open MPI, but there's no need to setup MPD at the end (MPICH has since deprecated MPD, anyway).

Resources