原创 05、yellow to green

注意:非 集羣環境不需要設置副本,以及切片數可以設置少點 5(或者更少,測試環境數量不多,切片需要在代碼中設置,副本也可以,同時副本還可以在api 處設置,單機環境副本信息可以設置成0) 連接的時候可以看能不能http://ip:

原创 08、es 進一步瞭解___b_ES 核心概念__1)集羣(Cluster)

ES 的集羣搭建不需要依賴第三方協調管理組件,自身內部就實現了集羣的管理功能。 ES 集羣由一個或多個 Elasticsearch 節點組成,每個節點配置相同的 cluster.name 即可加入集羣,默認值爲 “elastics

原创 06、es 重新授權

curl -H "Content-Type: application/json" -XPUT "http://localhost:9200/_license?acknowledge=true" -d @/Users/lxy/

原创 03_使用 Docker Compose 快速構建 TiDB 集羣

1、安裝docker. (01_centos 安裝docker) https://docs.docker.com/install/linux/docker-ce/centos/ 2、下載並安裝 tidb-docker-compos

原创 02_tidb 架構演進

Design Goals: Goal 1: Horizontal Scalability Goal 2: High Availability Goal 3: ACID Transaction 1、In ancient times

原创 08、es 進一步瞭解___b_ES 核心概念__2)分片(Shards)

ES 支持 PB 級全文搜索,當索引上的數據量太大的時候,ES 通過水平拆分的方式將一個索引上的數據拆分出來分配到不同的數據塊上,拆分出來的數據庫塊稱之爲一個分片。 這類似於 MySQL 的分庫分表,只不過 MySQL 分庫分表需

原创 01_tidb 資料參考

TiDB 是 PingCAP 公司設計的開源分佈式 HTAP (Hybrid Transactional and Analytical Processing) 數據庫,結合了傳統的 RDBMS 和 NoSQL 的最佳特性 高度兼容

原创 04_tidb sql 語法&05_與 mysql 兼容性

https://pingcap.com/docs-cn/dev/how-to/get-started/explore-sql/ TiDB 服務器官方支持的版本爲 MySQL 5.7,mysql. 大部分運維工具都支持 1)不支持的

原创 02、elasticsearch.yml

cluster.name: clusterName node.master: true node.data: true node.ingest: true http.cors.enabled: true http.cors.all

原创 08、es 進一步瞭解___d_機制原理_寫索引原理

下圖描述了 3 個節點的集羣,共擁有 12 個分片,其中有 4 個主分片(S0、S1、S2、S3)和 8 個副本分片(R0、R1、R2、R3),每個主分片對應兩個副本分片,節點 1 是主節點(Master 節點)負責整個集羣的狀態

原创 08、es 進一步瞭解___e_性能優化_

1)存儲設備 磁盤在現代服務器上通常都是瓶頸。Elasticsearch 重度使用磁盤,你的磁盤能處理的吞吐量越大,你的節點就越穩定。 這裏有一些優化磁盤 I/O 的技巧: 使用 SSD。就像其他地方提過的, 他們比機械磁盤優

原创 03、es啓動問題

1、啓動用戶爲非root 用戶 2、 ERROR: [2] bootstrap checks failed [1]: max file descriptors [65535] for elasticsearch process

原创 01、es 安裝

https://www.elastic.co/downloads/elasticsearch 1、下載 wget https://artifacts.elastic.co/downloads/elasticsearch/elast

原创 04、es 寫入優化

{ "index": { "number_of_shards": "10", "translog": { "flush_threshold_size": "200MB", "

原创 07、es-sql

./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/tag/6.2.1.0/elasticsearch