示例#1
0
        def network():
            """

            :return:
            """
            not_configured = self.check_configured()
            if not_configured:
                return not_configured
            plot = Plot(self.control.statestore)
            round_time_plot = plot.create_round_plot()
            mem_cpu_plot = plot.create_cpu_plot()
            combiners_plot = plot.create_combiner_plot()
            combiner_info = combiner_status()
            active_clients = client_status()
            return render_template(
                'network.html',
                network_plot=True,
                round_time_plot=round_time_plot,
                mem_cpu_plot=mem_cpu_plot,
                combiners_plot=combiners_plot,
                combiner_info=combiner_info,
                active_clients=active_clients['active_clients'],
                active_trainers=active_clients['active_trainers'],
                active_validators=active_clients['active_validators'],
                configured=True)
示例#2
0
 def network():
     from fedn.clients.reducer.plots import Plot
     plot = Plot(self.control.statestore)
     round_time_plot = plot.create_round_plot()
     mem_cpu_plot = plot.create_cpu_plot()
     combiners_plot = plot.create_combiner_plot()
     map_plot = create_map()
     combiner_info = combiner_stats()
     return render_template('index.html',
                            map_plot=map_plot,
                            network_plot=True,
                            round_time_plot=round_time_plot,
                            mem_cpu_plot=mem_cpu_plot,
                            combiners_plot=combiners_plot,
                            combiner_info=combiner_info)
示例#3
0
 def network():
     not_configured = self.check_configured()
     if not_configured:
         return not_configured
     plot = Plot(self.control.statestore)
     round_time_plot = plot.create_round_plot()
     mem_cpu_plot = plot.create_cpu_plot()
     combiners_plot = plot.create_combiner_plot()
     map_plot = create_map()
     combiner_info = combiner_stats()
     return render_template('network.html',
                            map_plot=map_plot,
                            network_plot=True,
                            round_time_plot=round_time_plot,
                            mem_cpu_plot=mem_cpu_plot,
                            combiners_plot=combiners_plot,
                            combiner_info=combiner_info,
                            configured=True)