Class: Karafka::Web::Cli::Reset

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/web/cli/reset.rb

Overview

Resets the Web UI

Instance Method Summary collapse

Methods inherited from Base

commands

Instance Method Details

#callObject

Resets Karafka Web. Removes the topics, creates them again and populates the initial state again. This is useful in case the Web-UI metrics or anything else got corrupted.



19
20
21
22
23
# File 'lib/karafka/web/cli/reset.rb', line 19

def call
  Karafka::Web::Installer.new.reset(
    replication_factor: compute_replication_factor(options[:replication_factor])
  )
end