dockerzhang commented on a change in pull request #2257: URL: https://github.com/apache/incubator-inlong/pull/2257#discussion_r789371428
########## File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf ########## @@ -0,0 +1,125 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# +# Attention: +# use this example, you must rename this file name to flume.conf, +# and replace the file with the same name in conf directory. +# + +agent1.sources = udp-source +agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6 + +agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource +agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory +agent1.sources.upd-source.host = 0.0.0.0 +agent1.sources.upd-source.port = 46803 +agent1.sources.upd-source.max-msg-length = 524288 +agent1.sources.upd-source.topic = test1 +agent1.sources.upd-source.attr = m=9 +agent1.sources.upd-source.connections = 30000 +agent1.sources.upd-source.max-threads = 64 +agent1.sources.upd-source.receiveBufferSize = 1048576 +agent1.sources.upd-source.sendBufferSize = 1048576 +agent1.sources.upd-source.custom-cp = true +agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector +agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2 +agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery +agent1.sources.upd-source.metric-agent-port=8003 +agent1.sources.upd-source.metric-cache-size=1000000 +agent1.sources.upd-source.set=10 + +agent1.channels.ch-msg1.type = memory +agent1.channels.ch-msg1.capacity = 10000 +agent1.channels.ch-msg1.keep-alive = 0 +agent1.channels.ch-msg1.transactionCapacity = 200 + +agent1.channels.ch-msg2.type = memory +agent1.channels.ch-msg2.capacity = 10000 +agent1.channels.ch-msg2.keep-alive = 0 +agent1.channels.ch-msg2.transactionCapacity = 200 + +agent1.channels.ch-msg5.type = file +agent1.channels.ch-msg5.capacity = 100000000 +agent1.channels.ch-msg5.maxFileSize = 1073741824 +agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check +agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data +agent1.channels.ch-msg5.fsyncPerTransaction = false +agent1.channels.ch-msg5.fsyncInterval = 10 + +agent1.channels.ch-msg6.type = file +agent1.channels.ch-msg6.capacity = 100000000 +agent1.channels.ch-msg6.maxFileSize = 1073741824 +agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check +agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data +agent1.channels.ch-msg6.fsyncPerTransaction = false +agent1.channels.ch-msg6.fsyncInterval = 10 + + +agent1.sinks.pulsar-sink-msg1.channel = ch-msg1 +agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg1.thread-num = 8 +agent1.sinks.pulsar-sink-msg1.client-id-cache = true +agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg2.channel = ch-msg2 +agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg2.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg2.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg2.thread-num = 8 +agent1.sinks.pulsar-sink-msg2.client-id-cache = true +agent1.sinks.pulsar-sink-msg2.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg2.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg2.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg2.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg5.channel = ch-msg5 +agent1.sinks.pulsar-sink-msg5.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg5.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg5.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg5.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg5.thread-num = 8 +agent1.sinks.pulsar-sink-msg5.client-id-cache = true +agent1.sinks.pulsar-sink-msg5.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg5.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg5.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg5.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg6.channel = ch-msg6 +agent1.sinks.pulsar-sink-msg6.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg6.pulsar_server_url_list = pulsar://PULSAR_LIST Review comment: ditto ########## File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf ########## @@ -0,0 +1,125 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# +# Attention: +# use this example, you must rename this file name to flume.conf, +# and replace the file with the same name in conf directory. +# + +agent1.sources = udp-source +agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6 + +agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource +agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory +agent1.sources.upd-source.host = 0.0.0.0 +agent1.sources.upd-source.port = 46803 +agent1.sources.upd-source.max-msg-length = 524288 +agent1.sources.upd-source.topic = test1 +agent1.sources.upd-source.attr = m=9 +agent1.sources.upd-source.connections = 30000 +agent1.sources.upd-source.max-threads = 64 +agent1.sources.upd-source.receiveBufferSize = 1048576 +agent1.sources.upd-source.sendBufferSize = 1048576 +agent1.sources.upd-source.custom-cp = true +agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector +agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2 +agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery +agent1.sources.upd-source.metric-agent-port=8003 +agent1.sources.upd-source.metric-cache-size=1000000 +agent1.sources.upd-source.set=10 + +agent1.channels.ch-msg1.type = memory +agent1.channels.ch-msg1.capacity = 10000 +agent1.channels.ch-msg1.keep-alive = 0 +agent1.channels.ch-msg1.transactionCapacity = 200 + +agent1.channels.ch-msg2.type = memory +agent1.channels.ch-msg2.capacity = 10000 +agent1.channels.ch-msg2.keep-alive = 0 +agent1.channels.ch-msg2.transactionCapacity = 200 + +agent1.channels.ch-msg5.type = file +agent1.channels.ch-msg5.capacity = 100000000 +agent1.channels.ch-msg5.maxFileSize = 1073741824 +agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check +agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data +agent1.channels.ch-msg5.fsyncPerTransaction = false +agent1.channels.ch-msg5.fsyncInterval = 10 + +agent1.channels.ch-msg6.type = file +agent1.channels.ch-msg6.capacity = 100000000 +agent1.channels.ch-msg6.maxFileSize = 1073741824 +agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check +agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data +agent1.channels.ch-msg6.fsyncPerTransaction = false +agent1.channels.ch-msg6.fsyncInterval = 10 + + +agent1.sinks.pulsar-sink-msg1.channel = ch-msg1 +agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg1.thread-num = 8 +agent1.sinks.pulsar-sink-msg1.client-id-cache = true +agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg2.channel = ch-msg2 +agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg2.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg2.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg2.thread-num = 8 +agent1.sinks.pulsar-sink-msg2.client-id-cache = true +agent1.sinks.pulsar-sink-msg2.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg2.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg2.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg2.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg5.channel = ch-msg5 +agent1.sinks.pulsar-sink-msg5.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg5.pulsar_server_url_list = pulsar://PULSAR_LIST Review comment: ditto ########## File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf ########## @@ -0,0 +1,125 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# +# Attention: +# use this example, you must rename this file name to flume.conf, +# and replace the file with the same name in conf directory. +# + +agent1.sources = udp-source +agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6 + +agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource +agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory +agent1.sources.upd-source.host = 0.0.0.0 +agent1.sources.upd-source.port = 46803 +agent1.sources.upd-source.max-msg-length = 524288 +agent1.sources.upd-source.topic = test1 +agent1.sources.upd-source.attr = m=9 +agent1.sources.upd-source.connections = 30000 +agent1.sources.upd-source.max-threads = 64 +agent1.sources.upd-source.receiveBufferSize = 1048576 +agent1.sources.upd-source.sendBufferSize = 1048576 +agent1.sources.upd-source.custom-cp = true +agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector +agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2 +agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery +agent1.sources.upd-source.metric-agent-port=8003 +agent1.sources.upd-source.metric-cache-size=1000000 +agent1.sources.upd-source.set=10 + +agent1.channels.ch-msg1.type = memory +agent1.channels.ch-msg1.capacity = 10000 +agent1.channels.ch-msg1.keep-alive = 0 +agent1.channels.ch-msg1.transactionCapacity = 200 + +agent1.channels.ch-msg2.type = memory +agent1.channels.ch-msg2.capacity = 10000 +agent1.channels.ch-msg2.keep-alive = 0 +agent1.channels.ch-msg2.transactionCapacity = 200 + +agent1.channels.ch-msg5.type = file +agent1.channels.ch-msg5.capacity = 100000000 +agent1.channels.ch-msg5.maxFileSize = 1073741824 +agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check +agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data +agent1.channels.ch-msg5.fsyncPerTransaction = false +agent1.channels.ch-msg5.fsyncInterval = 10 + +agent1.channels.ch-msg6.type = file +agent1.channels.ch-msg6.capacity = 100000000 +agent1.channels.ch-msg6.maxFileSize = 1073741824 +agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check +agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data +agent1.channels.ch-msg6.fsyncPerTransaction = false +agent1.channels.ch-msg6.fsyncInterval = 10 + + +agent1.sinks.pulsar-sink-msg1.channel = ch-msg1 +agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST Review comment: Keep all pulsar_server_url_list same value. ########## File path: inlong-dataproxy/conf/flume-mulit-pulsar-udp-example.conf ########## @@ -0,0 +1,125 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# +# Attention: +# use this example, you must rename this file name to flume.conf, +# and replace the file with the same name in conf directory. +# + +agent1.sources = udp-source +agent1.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sinks = pulsar-sink-msg1 pulsar-sink-msg2 pulsar-sink-msg5 pulsar-sink-msg6 + +agent1.sources.upd-source.channels = ch-msg1 ch-msg2 ch-msg5 ch-msg6 +agent1.sources.upd-source.type = org.apache.inlong.dataproxy.source.SimpleUdpSource +agent1.sources.upd-source.msg-factory-name = org.apache.inlong.dataproxy.source.ServerMessageFactory +agent1.sources.upd-source.host = 0.0.0.0 +agent1.sources.upd-source.port = 46803 +agent1.sources.upd-source.max-msg-length = 524288 +agent1.sources.upd-source.topic = test1 +agent1.sources.upd-source.attr = m=9 +agent1.sources.upd-source.connections = 30000 +agent1.sources.upd-source.max-threads = 64 +agent1.sources.upd-source.receiveBufferSize = 1048576 +agent1.sources.upd-source.sendBufferSize = 1048576 +agent1.sources.upd-source.custom-cp = true +agent1.sources.upd-source.selector.type = org.apache.inlong.dataproxy.channel.FailoverChannelSelector +agent1.sources.upd-source.selector.master = ch-msg1 ch-msg2 +agent1.sources.upd-source.metric-recovery-path=/data/DataProxy/file/recovery +agent1.sources.upd-source.metric-agent-port=8003 +agent1.sources.upd-source.metric-cache-size=1000000 +agent1.sources.upd-source.set=10 + +agent1.channels.ch-msg1.type = memory +agent1.channels.ch-msg1.capacity = 10000 +agent1.channels.ch-msg1.keep-alive = 0 +agent1.channels.ch-msg1.transactionCapacity = 200 + +agent1.channels.ch-msg2.type = memory +agent1.channels.ch-msg2.capacity = 10000 +agent1.channels.ch-msg2.keep-alive = 0 +agent1.channels.ch-msg2.transactionCapacity = 200 + +agent1.channels.ch-msg5.type = file +agent1.channels.ch-msg5.capacity = 100000000 +agent1.channels.ch-msg5.maxFileSize = 1073741824 +agent1.channels.ch-msg5.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg5.checkpointDir = /data/DataProxy/file/ch-msg5/check +agent1.channels.ch-msg5.dataDirs = /data/DataProxy/file/ch-msg5/data +agent1.channels.ch-msg5.fsyncPerTransaction = false +agent1.channels.ch-msg5.fsyncInterval = 10 + +agent1.channels.ch-msg6.type = file +agent1.channels.ch-msg6.capacity = 100000000 +agent1.channels.ch-msg6.maxFileSize = 1073741824 +agent1.channels.ch-msg6.minimumRequiredSpace = 1073741824 +agent1.channels.ch-msg6.checkpointDir = /data/DataProxy/file/ch-msg6/check +agent1.channels.ch-msg6.dataDirs = /data/DataProxy/file/ch-msg6/data +agent1.channels.ch-msg6.fsyncPerTransaction = false +agent1.channels.ch-msg6.fsyncInterval = 10 + + +agent1.sinks.pulsar-sink-msg1.channel = ch-msg1 +agent1.sinks.pulsar-sink-msg1.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg1.pulsar_server_url_list = pulsar://PULSAR_LIST +agent1.sinks.pulsar-sink-msg1.send_timeout_MILL = 30000 +agent1.sinks.pulsar-sink-msg1.stat_interval_sec = 60 +agent1.sinks.pulsar-sink-msg1.thread-num = 8 +agent1.sinks.pulsar-sink-msg1.client-id-cache = true +agent1.sinks.pulsar-sink-msg1.max_survived_time = 300000 +agent1.sinks.pulsar-sink-msg1.max_survived_size = 3000000 +agent1.sinks.pulsar-sink-msg1.netty_write_buffer_high_water_mark = 20971520 +agent1.sinks.pulsar-sink-msg1.disk-io-rate-per-sec=20000000 + +agent1.sinks.pulsar-sink-msg2.channel = ch-msg2 +agent1.sinks.pulsar-sink-msg2.type = org.apache.inlong.dataproxy.sink.PulsarSink +agent1.sinks.pulsar-sink-msg2.pulsar_server_url_list = pulsar://PULSAR_LIST Review comment: ditto -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
