Add set rcv buffer for syncd rpc (#64)

This commit is contained in:
Pavel Shirshov 2016-11-10 18:29:44 -08:00 committed by Shuotian Cheng
parent 31420370b0
commit af5c61c73a
4 changed files with 4 additions and 2 deletions

View File

@ -44,5 +44,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf
ENTRYPOINT service rsyslog start \ ENTRYPOINT service rsyslog start \
&& sysctl -w net.core.rmem_max=509430500 \
&& service syncd start \ && service syncd start \
&& /usr/bin/supervisord && /usr/bin/supervisord

View File

@ -1,5 +1,5 @@
[program:ptf_nn_agent] [program:ptf_nn_agent]
command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 --set-iface-rcv-buffer=109430400
process_name=ptf_nn_agent process_name=ptf_nn_agent
stdout_logfile=/tmp/ptf_nn_agent.out.log stdout_logfile=/tmp/ptf_nn_agent.out.log
stderr_logfile=/tmp/ptf_nn_agent.err.log stderr_logfile=/tmp/ptf_nn_agent.err.log

View File

@ -44,5 +44,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf
ENTRYPOINT service rsyslog start \ ENTRYPOINT service rsyslog start \
&& sysctl -w net.core.rmem_max=509430500 \
&& service syncd start \ && service syncd start \
&& /usr/bin/supervisord && /usr/bin/supervisord

View File

@ -1,5 +1,5 @@
[program:ptf_nn_agent] [program:ptf_nn_agent]
command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 --set-iface-rcv-buffer=109430400
process_name=ptf_nn_agent process_name=ptf_nn_agent
stdout_logfile=/tmp/ptf_nn_agent.out.log stdout_logfile=/tmp/ptf_nn_agent.out.log
stderr_logfile=/tmp/ptf_nn_agent.err.log stderr_logfile=/tmp/ptf_nn_agent.err.log