Edge and cloud networks have emerged during the rapid evolution of networking in the last years, mainly as part of Internet of Things network. Security has become a key issue for any huge deployment in this network. Moreover, data reliability combined with performance is really a challenging task, particularly to maintain survivability of the network. This paper addresses this task using an Adaptation Security Framework, which is an efficient edge-cloud security deployment capable of trading-off between security and performance. It is based on an autonomic computing security looped system, which fine-tunes security means based on the monitoring of the context. An evaluation of the approach is undergoing in the context of smart city through a simulation tool and real-world large deployment.