text: /**
   * Filter for rpc log.
   * Reject rpc request when toobusy
   */
  var rpc_logger = require('pomelo-logger').getLogger('rpc-log', __filename);
  var utils = require('../../util/utils');
  var toobusy = require ('toobusy');
  
  var exp = module.exports;
  
  exp.name = 'toobusy';
  
  /**
   * Before filter for rpc
   */
  exp.before = function(serverId, msg, opts, next) {
    opts = opts||{};
    if (toobusy()) {
      rpc_logger.warn('Server too busy for rpc request, serverId:' + serverId + ' msg: ' + msg);
    }
    else {
      next(serverId, msg, opts);
    }
  };
  