خرید بک لینک

Vote count: 0

I am trying to setup a cluster to solve data analyze issue. I`m considering to use ElasticSearch.

The data structure is like below

gender    school    age    name    ...    score
male      dlut      18     dav            100
male      pkut      20     tom            80

The total number of rows are around 20 billion. I want to run some query like :

SELECT school, avg(score) FROM table GROUP BY school ORDER BY avg(score) LIMIT 5

To get some top 5 records after some group by and aggregation from billions of records.

ES said that some company is building clusters containing hundreds of computers to do analysis job. But I do not know what kind of machine they are using.

I am using machine like below:

CPU 8core
mem 16G

And I did some performance test. Use a query hoping it can retu in 3 seconds. But it tus out my computer can process only 800 000 docs if I want the response time with 3s. It means if I want analyze 10 billion records. I need more than 10 thousand of computer.

So, I am asking here, what kind of machine are you using in your cluster? Is it normal for a machine like above can only process 800 000 records based on the 3 second response time requirement?

Also.. Below are my query if you interested.

curl -XPOST "127.0.0.1:9200/sflow_1454256000/sflow/_search?pretty" -d '
{
    "size":0,
    "query": {
        "filtered":{
            "filter":{
                "range": { "@timestamp": { "gte":0,"lte":9999999999}}
            }
        }
    },
  "aggs":
    {
      "SRC_MAC":
        {
          "terms": {"field":"SRC_MAC", "size": 3,"shard_size":0, "order": {"sum_bits": "desc"}},
          "aggs": { "sum_bits": { "sum": {"field": "BYTES"} } }
        }
    }
}'

asked 1 min ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 17 اسفند 1394 ساعت: 13:35

صفحه بندی