Failed to connect with another node due to genesis using old cached 

$ tendermint unsafe_reset_priv_validator

Bigchaindb

 


Download JMeter here --> https://jmeter.apache.org/download_jmeter.cgi




Extract the zip and find the application 




Choose File then click on Template




Choose Building Web Test Plan and click on "Create"


To increase users thread goto Scenario 1 and change the Number of Thread



Lastly, click on the Start button



View the result







[Windows] Tutorial of JMeter to Web Load Testing (Localhost)

After a few try and error, I figure out the best tutorial to make Nginx load balancing works.


$ sudo gedit /etc/nginx/conf.d/loadbalancer.conf


upstream backend {
server 192.168.56.110;
server 192.168.56.120;
        server 192.168.56.130;
        server 192.168.56.120;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host; proxy_pass http://backend; }
}



$ sudo nginx -t
$ sudo systemctl restart nginx
$ sudo systemctl enable nginx


Ref: https://www.tecmint.com/use-nginx-as-http-load-balancer-in-linux/amp/




Image Credit : https://www.serverlab.ca/tutorials/windows/web-servers/load-balancing-web-servers-with-windows-server-2012-r2/

Load Balancing Between Virtual Box

img

#define BARS_TO_ANALYSE 100;

function stocasticSignal(){

string signal;

for(int a=0;a<BARS_TO_ANALYSE;a++)
   {
      mainLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_MAIN,a);
      prevMainLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_MAIN,a+1);
      signalLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,a);
      prevSignalLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,a+1);
        
	 if(prevMainLine <prevSignalLine && mainLine> signalLine){
        signal = "BUY";
	 }
     if(prevMainLine>prevSignalLine && mainLine < signalLine){
        signal = "SELL";     
	 }
   } return signal;                                                                                                                                              
}

MQL4 - Stochastic

img
 

string getMAcrossoverSignal()
{
	  string Signal;
      
	  //current chart, current period, 20, no shift, simple, close price
      double SlowMovingAverage = iMA(NULL,0,50,0,MODE_SMA, PRICE_CLOSE, 0);
      
      //current chart, current period, 20, no shift, simple, close price
      double LastSlowMovingAverage = iMA(NULL,0,50,0,MODE_SMA, PRICE_CLOSE, 1);
      
      //current chart, current period, 10, no shift, simple, close price
      double FastMovingAverage = iMA(NULL,0,20,0,MODE_SMA, PRICE_CLOSE, 0);
      
      //current chart, current period, 10, no shift, simple, close price
      double LastFastMovingAverage = iMA(NULL,0,20,0,MODE_SMA, PRICE_CLOSE, 1);
      
       
      if ((LastFastMovingAverage < LastSlowMovingAverage) && (FastMovingAverage > SlowMovingAverage))
         { 
         	Comment ("CrossOver:", "BUY");
            Signal = "BUY";
         }
      
      if ((LastFastMovingAverage > LastSlowMovingAverage) && (FastMovingAverage < SlowMovingAverage))
         { 
         	Comment ("CrossOver:", "SELL");
            Signal = "SELL";
         }
         
       return Signal;
      
}
      

MQL4 - Moving Average Cross Over Signal

im
 //---------------------------------  
 // Close All Trade  
 //--------------------------------  
 void CloseAllTrades()  
 {  
   //go through all open trades  
   for (int i=OrdersTotal(); i>=0;i--)  
   {  
    //select trade  
    if (OrderSelect(i, SELECT_BY_POS)==true)  
    {  
      //check if trade belongs to current chart  
      if(OrderSymbol()== Symbol())  
      {  
       bool Ans = OrderClose(OrderTicket(),OrderLots(), MarketInfo(OrderSymbol(), MODE_BID),5,Red);  
       if (Ans == true)  
       {  
       Print ("Order Close !");  
       }  
      }  
    }  
   }  
 }  

MQL4 - How to Close All Trade




To use virtual machine using virtualbox we need to disable the hyper-v service 
by using CMD or Powershell (Administrator)
$ bcdedit /set hypervisorlaunchtype off
Restart PC and start virtualbox
----------------------------------------------------------------
To use docker again use below command 
by using CMD or Powershell (Administrator)
$ bcdedit /set hypervisorlaunchtype auto
Restart PC and start virtualbox

The Clash of Virtual Machine and Docker