def test_container_performance(): """ Runs TestPerformanceTask with a MockSystem to test how fast the SamzaContainer can go. """ util.start_job(PACKAGE_ID, CONTAINER_JOB_ID, CONTAINER_CONFIG_FILE) util.await_job(PACKAGE_ID, CONTAINER_JOB_ID)
def test_kafka_read_write_performance(): """ Runs a Samza job that reads from Kafka, and writes back out to it. The writes/sec for the job is logged to the job's container. """ _load_data() util.start_job(PACKAGE_ID, KAFKA_JOB_ID, KAFKA_CONFIG_FILE) util.await_job(PACKAGE_ID, KAFKA_JOB_ID)
def test_samza_job(): """ Runs a job that reads converts input strings to integers, negates the integer, and outputs to a Kafka topic. """ _load_data() util.start_job(PACKAGE_ID, JOB_ID, CONFIG_FILE) util.await_job(PACKAGE_ID, JOB_ID)
def test_kafka_read_write_performance(): """ Runs a Samza job that reads from Kafka, and writes back out to it. The writes/sec for the job is logged to the job's container. """ _load_data() util.start_job(PACKAGE_ID, JOB_ID, CONFIG_FILE) util.await_job(PACKAGE_ID, JOB_ID)