You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2020/08/19 07:02:47 UTC

[GitHub] [incubator-pegasus] Shuo-Jia opened a new issue #578: use json result to get target value replace complex regex to filter in scripts

Shuo-Jia opened a new issue #578:
URL: https://github.com/apache/incubator-pegasus/issues/578


   ## Feature Request
   
   **Is your feature request related to a problem? Please describe:**
   <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
   Now in scripts file, we usually use complex regex to filter the shell command result, just as:
   https://github.com/apache/incubator-pegasus/blob/fc1d2aa05df7bcea25116e1533a919b43f478209/scripts/pegasus_rolling_update.sh#L63
   which is not elegant. Since the shell supports the json format result, we can consider using the json result:
   ```
   {
       "cluster_info": {
           "meta_servers": "127.0.0.1:34601,127.0.0.1:34602,127.0.0.1:34603",
           "primary_meta_server": "127.0.0.1:34603",
           "zookeeper_hosts": "127.0.0.1:22181",
           "zookeeper_root": "/pegasus/onebox/127.0.0.1",
           "meta_function_level": "steady",
           "balance_operation_count": "move_pri=0,copy_pri=0,copy_sec=0,total=0",
           "primary_replica_count_stddev": "0.00",
           "total_replica_count_stddev": "0.00"
       }
   }
   
   ```
    to get the target value
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org