If any camera goes down I need to reconnect with out playing the pipeline state playing again

The sample has shown you the method to remove/add source dynamically. For the FPS drop issue. You may refer to the nvstreammux setting. DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums