code: def is_instance_avg_req_latency_too_high(self, inst_id):
          
          avg_lat, avg_lat_others = self.getLatencies()
          if not avg_lat or not avg_lat_others:
              return False
  
          d = avg_lat - avg_lat_others
          if d < self.Omega:
              return False
  
          if inst_id == self.instances.masterId:
              logger.info("{}{} found difference between master's and "
                          "backups's avg latency {} to be higher than the "
                          "threshold".format(MONITORING_PREFIX, self, d))
              logger.trace(
                  "{}'s master's avg request latency is {} and backup's "
                  "avg request latency is {}".format(self, avg_lat, avg_lat_others))
          return True
docs: Return whether the average request latency of an instance is
          greater than the acceptable threshold