Hi Pierre,
We are aware of this need to deploy the same App to multiple App Hosts, for both load balancing purposes and to integrate with different datasources. There is an active discussion within IBM to support this in future releases.
Until we can offer this, your approach is the correct, but will several caveats. The most important is the use of UUIDs to uniquely define apps, functions, function input fields, etc. Renaming an app or function alone without also changing the associated UUID will fail to load or worse, overwrite the existing function.
An alternative is to use the 'resilient-sdk clone' capability. It will take functions, workflows, rules, playbooks, etc. and give you the ability to duplicate them (with new UUIDs). This is the syntax for duplicating a function:
resilient-sdk clone -f <old_function_name> <new_function_name>
If you have many functions, this can be a tedious activity. You'll still need to assign a new message destination to each cloned function. But at least you have an easier way to start the duplication process.
Hope this helps.
------------------------------
Mark Scherfling
------------------------------