Skip to content
Snippets Groups Projects
Commit bf13c98b authored by Mandeep Dhami's avatar Mandeep Dhami
Browse files

Turning the overload protection off untill we have tuned it

parent 78c79949
No related branches found
No related tags found
No related merge requests found
...@@ -237,7 +237,7 @@ public class Controller implements IFloodlightProviderService, ...@@ -237,7 +237,7 @@ public class Controller implements IFloodlightProviderService,
protected static final boolean ALWAYS_DECODE_ETH = true; protected static final boolean ALWAYS_DECODE_ETH = true;
// Load monitor for overload protection // Load monitor for overload protection
protected final boolean overload_protection = true; protected final boolean overload_protection = false;
protected final LoadMonitor loadmonitor = new LoadMonitor(); protected final LoadMonitor loadmonitor = new LoadMonitor();
/** /**
...@@ -2171,8 +2171,10 @@ public class Controller implements IFloodlightProviderService, ...@@ -2171,8 +2171,10 @@ public class Controller implements IFloodlightProviderService,
} }
// Startup load monitoring // Startup load monitoring
this.loadmonitor.startMonitoring( if (overload_protection) {
this.threadPool.getScheduledExecutor()); this.loadmonitor.startMonitoring(
this.threadPool.getScheduledExecutor());
}
// Add our REST API // Add our REST API
restApi.addRestletRoutable(new CoreWebRoutable()); restApi.addRestletRoutable(new CoreWebRoutable());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment