def check_bulkhead(self, source, dependencies, slow_dest, rate):
<EOL>dependencies.remove(slow_dest)<EOL>s =str(float(<NUM_LIT:1>)/float(rate))<EOL>max_spacing = _parse_duration(s+'<STR_LIT:s>')<EOL>for dest in dependencies:<EOL><INDENT>data = self._es.search(body={<EOL>"<STR_LIT:size>": max_query_results,<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {}<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT:bool>": {<EOL>"<STR_LIT>": [<EOL>{"<STR_LIT>": {"<STR_LIT>": "<STR_LIT>"}},<EOL>{"<STR_LIT>": {"<STR_LIT:source>": source}},<EOL>{"<STR_LIT>": {"<STR_LIT>": dest}},<EOL>{"<STR_LIT>": {"<STR_LIT>": self._id}}<EOL>]<EOL>}<EOL>}<EOL>}<EOL>}<EOL>})<EOL>if self.debug:<EOL><INDENT>pprint.pprint(data)<EOL><DEDENT>result = True<EOL>errormsg = "<STR_LIT>"<EOL>if not self._check_non_zero_results(data):<EOL><INDENT>result = False<EOL>errormsg = "<STR_LIT>"<EOL>return GremlinTestResult(result, errormsg)<EOL><DEDENT>req_seq = _get_by("<STR_LIT:source>", source, data["<STR_LIT>"]["<STR_LIT>"])<EOL>req_seq.sort(key=lambda x: isodate.parse_datetime(x['<STR_LIT>']["<STR_LIT>"]))<EOL>last_request = isodate.parse_datetime(req_seq[<NUM_LIT:0>]['<STR_LIT>']["<STR_LIT>"])<EOL>for req in req_seq:<EOL><INDENT>req_spacing = isodate.parse_datetime(req['<STR_LIT>']["<STR_LIT>"]) - last_request<EOL>last_request = isodate.parse_datetime(req['<STR_LIT>']["<STR_LIT>"])<EOL>if self.debug:<EOL><INDENT>print("<STR_LIT>", req_spacing, max_spacing)<EOL><DEDENT>if req_spacing > max_spacing:<EOL><INDENT>errormsg = "<STR_LIT>".format(source,<EOL>dest,<EOL>req_spacing,<EOL>max_spacing) <EOL>result = False<EOL>return GremlinTestResult(result, errormsg)                <EOL><DEDENT><DEDENT><DEDENT>return GremlinTestResult(result, errormsg)<EOL>
Asserts bulkheads by ensuring that the rate of requests to other dests is kept when slow_dest is slow
:param source the source service name
:param dependencies list of dependency names of source
:param slow_dest the name of the dependency that independence is being tested for
:param rate number of requests per second that should occur to each dependency
:return: