Elasticsearch anti-patterns and bad practices to be aware of

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2022
  • I've seen and done some things in my time. Some of those things were glorious. Some turned out to be horrible, horrible mistakes. In this video, I speak about some of those things that involved Elasticsearch.
    Wonderful as it is, Elasticsearch won't solve all your problems, and may even cause you some sleepless nights if used inappropriately. You might not even need it. I'd like to help you avoid the mistakes I've made and seen while building and managing clusters. It feels good to get this off my chest.

ความคิดเห็น • 22

  • @samb2543
    @samb2543 ปีที่แล้ว +18

    Speaking as somebody who is setting up their first proper Elasticsearch cluster at the moment, this stuff is gold. So often you don't hear about the practical realities of new tech, people only mention the shiny bits, and it's great to go into this project with my eyes open.

    • @GeorgeBridgemanData
      @GeorgeBridgemanData  ปีที่แล้ว +2

      Thanks so much! I hope the setup goes well. Please let me know if there's anything you found difficult and would like explained; I'm always looking to hear people's experience.

    • @samb2543
      @samb2543 ปีที่แล้ว +1

      @@GeorgeBridgemanData Thank you!
      The thing that puzzles me most at the moment are users, roles, privileges and api keys. As I build out and plug in more things (3rd party monitoring, logstash, metricbeat, elastalert etc) I try to provision users scoped to only the features and data they need, but it's a slow process trying to figure out only the minimal permissions.
      I've not really found a good explanation of the ES security model yet, if you fancied doing a vid on that sort of topic I'm sure I and others would find it very useful!

  • @kickinit333
    @kickinit333 ปีที่แล้ว +14

    Great tips. I ran a in-house ELK cluster for 6 years and you're absolutely right. The skill needed to setup, maintain, optimize and grow an ELK cluster in many ways does not mirror RDB at all.
    Prepare for some late nights unclogging bottlenecks, upgrading and optimizing (and many times rewriting) ingest pipelines. Not to mention the network costs retrieving data from cloud providers and dealing with out-of-date plugins. Lot's to think about. Cheers.

    • @GeorgeBridgemanData
      @GeorgeBridgemanData  ปีที่แล้ว +2

      I'm really pleased it resonated with you! Elasticsearch is certainly a different beast than how it's considered.
      What you mentioned about cost is a really interesting point. There are a lot of places where (financial) cost scope can creep up. Network cost is one, storage cost for lots of replica shards in a read-heavy cluster is another, VM cost per node... Bills can get to the point where people don't want to add nodes because it's so expensive, even at the cost of cluster performance.

  • @jamesa8165
    @jamesa8165 ปีที่แล้ว +8

    Certainly can attest to point #1 - We went into our project (hundreds of millions of records, for full document text search) thinking we would have completely flattened data.
    Later on in the project we saw a serious need for some form of hierarchy/relationship - I see now why ES HIGHLY recommends flattened data approaches - the hasParent/hasChild queries can be complicated and super expensive, especially for aggregations.

  • @ankurleonardo
    @ankurleonardo ปีที่แล้ว +1

    You deserve at least 10 million subscribers. All watching with zeal.

  • @deez_narts
    @deez_narts 8 หลายเดือนก่อน +1

    I can attest to the challenges you described. I’m the only one in my organization using elasticsearch. Everyone else is afraid to touch it. I do not blame them.

  • @skkooledd
    @skkooledd ปีที่แล้ว

    Great video and thought process!

  • @abdirahmann
    @abdirahmann 9 หลายเดือนก่อน +2

    am currently building a project that requires semantic search, i wanted to pay someone soo quickly to get this done (i can do it myself but i don't want to spend the time), i thought ELK would be such a breeze, thanks for saving me the time and money :)

  • @toughcoding
    @toughcoding 11 หลายเดือนก่อน +3

    The worst thing is when you meet Solution Architect who want you to increase index mapping total_fields limit just to fit badly design mapping. Good point!
    Good sound quality. wish to have same one day

    • @GeorgeBridgemanData
      @GeorgeBridgemanData  11 หลายเดือนก่อน

      There's a time and a place for increasing it. It can sometimes get you out of a bind but it's not a good long term solution and you're better off fixing the mapping as soon as practical.

  • @atom6_
    @atom6_ 4 หลายเดือนก่อน

    These are great points - within an organisation where elastic ends up in production without really fleshing out the way it should be used and having teams onboarding their data without true understanding of the data modelling that needs to be done and understood upfront is a major pain to fix later down the line. Common fields are essential (i would say critical) to make most of it when trying to get your data out in a useful way.

  • @guyholmes1231
    @guyholmes1231 11 หลายเดือนก่อน

    Hi @GeorgeBridgemanData - can Elsatic search be used for types of files that it may never have seen before and "shown" how to parse them?

  • @sidalisaadi1961
    @sidalisaadi1961 3 หลายเดือนก่อน

    I was planning to run a elastic search image for work on docker, thinking it would be a simple process. this video is an eye opener, now I'm not sure if I should go for it or not, our use case is something like yelp with much less data

  • @nathansherburne7038
    @nathansherburne7038 8 หลายเดือนก่อน

    How about using Elasticsearch for only term searches and doc id queries? Bad use case?

  • @eladitzkovitch6203
    @eladitzkovitch6203 11 หลายเดือนก่อน

    Hi George, how can I contact you in person? We would like to invite you as a guest to a function of ours to talk about Elasticsearch.

    • @GeorgeBridgemanData
      @GeorgeBridgemanData  11 หลายเดือนก่อน +1

      Hi there. Feel free to contact me via LinkedIn.

  • @mksmurff
    @mksmurff 9 หลายเดือนก่อน

    Well that's just put me off completely

  • @abdulhayy225
    @abdulhayy225 ปีที่แล้ว

    hi

  • @alexgavril385
    @alexgavril385 ปีที่แล้ว +1

    amazing lessons