apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.96k stars 310 forks source link

Question(New Feature): Does Pegasus need `sort key` sampling function? #2041

Open ruojieranyishen opened 3 weeks ago

ruojieranyishen commented 3 weeks ago

background

  1. Users use multiple clients to access the cluster. It is not easy to collect hot content. (Advertising business scene)
  2. Obtain hot content can help users optimize reading and writing.

idea

Implement a function to sample the read content over a period of time. [In get mult-get operation]

example:

// "sample_key",
        // "start or stop sample sort keys on a replica of a replica server",
        // "<-a|--app_id num> "
        // "<-p|--partition_index_list num> "
        // "<-c|--sample_action start|stop|query> "
        // "<-t|--duration_time_minute num>"
        // "<-s|--sampling_times num>"
        // "<-l--node_list>"
        // "<-r|--reslove_ip>"