<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 七、Lars啟動工具腳本 我們提供一個啟動lars系統子系統和測試工具的一個腳本工具,`run_lars` > Lars/run_lars ```bash #!/bin/bash LARS_REPORTER_PATH="./lars_reporter" LARS_DNS_PATH="./lars_dns" LARS_LBAGENT_PATH="./lars_loadbalance_agent" LARS_WEB_PATH="./larsWeb" LARS_API_EXAMPLE_PATH="./api/cpp/example" usage() { echo "" echo "=======啟動子系統==========" echo "Usage ./run_lars [reporter|dns|lbagent|web|test]" echo echo "=======測試工具============" echo "Usage ./run_lars test gethost ModID CmdID" echo "Usage ./run_lars test getroute ModID CmdID" echo "Usage ./run_lars test report ModID CmdID IP Port 0|1 --- 0:SUCC, 1:OVERLOAD" echo "Usage ./run_lars test simulator ModID CmdID [errRate(0-10)] [queryCnt(0-999999)]" echo "Usage ./run_lars test qps ThreadNum" echo "Usage ./run_lars test example ModID CmdID" echo } if [ "$1" = "test" ]; then if [ "$2" = "gethost" ]; then $PWD/$LARS_API_EXAMPLE_PATH/get_host $3 $4 elif [ "$2" = "getroute" ]; then $PWD/$LARS_API_EXAMPLE_PATH/get_route $3 $4 elif [ "$2" = "report" ]; then $PWD/$LARS_API_EXAMPLE_PATH/report $3 $4 $5 $6 $7 elif [ "$2" = "example" ]; then $PWD/$LARS_API_EXAMPLE_PATH/example $3 $4 elif [ "$2" = "simulator" ]; then if [ $# -eq 4 ]; then $PWD/$LARS_API_EXAMPLE_PATH/simulator $3 $4 elif [ $# -eq 5 ]; then $PWD/$LARS_API_EXAMPLE_PATH/simulator $3 $4 $5 elif [ $# -eq 6 ]; then $PWD/$LARS_API_EXAMPLE_PATH/simulator $3 $4 $5 $6 else usage fi elif [ "$2" = "qps" ]; then $PWD/$LARS_API_EXAMPLE_PATH/qps $3 fi elif [ "$1" = "reporter" ]; then cd $LARS_REPORTER_PATH ./bin/lars_reporter elif [ "$1" = "dns" ]; then cd $LARS_DNS_PATH ./bin/lars_dns elif [ "$1" = "lbagent" ]; then cd $LARS_LBAGENT_PATH ./bin/lars_lb_agent elif [ "$1" = "web" ]; then cd $LARS_WEB_PATH ./lars-web elif [ "$1" = "help" ]; then usage else usage fi ``` **啟動 Lars Reporter** ```bash $ ./run_lars reporter ▄▄ ██ ██ ▄█████▄ ██▄████ ▄▄█████▄ ██ ? ▄▄▄██ ██? ██▄▄▄▄ ? ██ ▄██???██ ██ ????██▄ ██▄▄▄▄▄▄ ██▄▄▄███ ██ █▄▄▄▄▄██ ???????? ???? ?? ?? ?????? Load balance And Remote service schedule System _____ _ | __ \ | | | |__) |___ _ __ ___ _ __| |_ ___ _ __ | _ // _ \ '_ \ / _ \| '__| __/ _ \ '__| | | \ \ __/ |_) | (_) | | | || __/ | |_| \_\___| .__/ \___/|_| \__\___|_| | | |_| ITCAST(https://www.itcast.cn) ------------------------------------ create 0 thread create 1 thread create 2 thread create 3 thread create 4 thread add msg cb msgid = 3 ``` **啟動 Lars dns** ```bash $ ./run_lars dns ▄▄ ██ ██ ▄█████▄ ██▄████ ▄▄█████▄ ██ ? ▄▄▄██ ██? ██▄▄▄▄ ? ██ ▄██???██ ██ ????██▄ ██▄▄▄▄▄▄ ██▄▄▄███ ██ █▄▄▄▄▄██ ???????? ???? ?? ?? ?????? Load balance And Remote service schedule System _____ | __ \ | | | |_ __ ___ | | | | '_ \/ __| | |__| | | | \__ \ |_____/|_| |_|___/ ITCAST(https://www.itcast.cn) ------------------------------------ create 0 thread create 1 thread create 2 thread create 3 thread create 4 thread add msg cb msgid = 1 lars dns service .... now route version is 1574674421 ``` **啟動 Lars Lb Agent** ```c $ ./run_lars lbagent ▄▄ ██ ██ ▄█████▄ ██▄████ ▄▄█████▄ ██ ? ▄▄▄██ ██? ██▄▄▄▄ ? ██ ▄██???██ ██ ????██▄ ██▄▄▄▄▄▄ ██▄▄▄███ ██ █▄▄▄▄▄██ ???????? ???? ?? ?? ?????? Load balance And Remote service schedule System _ _ _ | | | | /\ | | | | | |__ / \ __ _ ___ _ __ | |_ | | | '_ \ / /\ \ / _` |/ _ \ '_ \| __| | |____| |_) | / ____ \ (_| | __/ | | | |_ |______|_.__/ /_/ \_\__, |\___|_| |_|\__| __/ | |___/ ITCAST(https://www.itcast.cn) ------------------------------------ ``` **其他測試工具啟動方式** ```bash $ ./run_lars help =======啟動子系統========== Usage ./run_lars [reporter|dns|lbagent|web|test] =======測試工具============ Usage ./run_lars test gethost ModID CmdID Usage ./run_lars test getroute ModID CmdID Usage ./run_lars test report ModID CmdID IP Port 0|1 --- 0:SUCC, 1:OVERLOAD Usage ./run_lars test simulator ModID CmdID [errRate(0-10)] [queryCnt(0-999999)] Usage ./run_lars test qps ThreadNum Usage ./run_lars test example ModID CmdID ``` --- ### 關于作者: 作者:`Aceld(劉丹冰)` mail: [danbing.at@gmail.com](mailto:danbing.at@gmail.com) github: [https://github.com/aceld](https://github.com/aceld) 原創書籍: [http://www.hmoore.net/@aceld](http://www.hmoore.net/@aceld) ![](https://img.kancloud.cn/b0/d1/b0d11a21ba62e96aef1c11d5bfff2cf8_227x227.jpg) >**原創聲明:未經作者允許請勿轉載, 如果轉載請注明出處**
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看