spark 스 트 리밍 제한 삼투

1101 단어 Stream
spark.streaming.receiver.maxRate 이 속성 을 사용 하여 초당 최대 삼투 를 제한 합 니 다.공식 문 서 는 다음 과 같다.
Maximum rate (number of records per second) at which each receiver will receive data. Effectively, each stream will consume at most this number of records per second. Setting this configuration to 0 or a negative number will put no limit on the rate. See the deployment guide in the Spark Streaming programing guide for mode details.


기본적으로 설정 이 없습니다.즉,제한 을 하지 않 았 습 니 다.
100 을 제한 하면 1 초 에 최대 100 개 를 삼 키 는 것 이다.
 
그 다음 에 문서 에 또 하나의 속성 spark.streaming.kafka.max RatePerPartition 도 삼투 제한 입 니 다.kafka 가 읽 는 속 도 를 제한 하 는 것 에 불과 합 니 다.공식 문 서 는 이렇게 말 합 니 다.
Maximum rate (number of records per second) at which data will be read from each Kafka partition when using the new Kafka direct stream API. See the Kafka Integration guide for more details.


기본 값 도 설정 되 어 있 지 않 습 니 다.
아직 이 두 사람의 연관 성 을 알 수 없다. 이것 은 소스 코드 를 연구 해 야 한다.spark.streaming.receiver.maxRate 는 kafka 를 제외 한 삼투 를 제한 하고 spark.streaming.kafka.macRatePerPartition 의 삼투 라 고 추측 합 니 다.

좋은 웹페이지 즐겨찾기