1 shard, 0 replica.
Update default template:
curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}' | package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "os" | |
| "time" |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| "unsafe" | |
| ) | |
| func main() { | |
| s := make([]string, 1, 2) |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "strconv" | |
| ) |
| import datetime | |
| import os | |
| import re | |
| import sys | |
| import time | |
| import piexif | |
| def fix(directory): |
| π Morning 123 commits βββββββββββββββββββββ 9.4% | |
| π Daytime 345 commits βββββββββββββββββββββ 26.3% | |
| π Evening 548 commits βββββββββββββββββββββ 41.8% | |
| π Night 295 commits βββββββββββββββββββββ 22.5% |
| import ply.yacc as yacc | |
| import ply.lex as lex | |
| from genereTreeGraphviz2 import printTreeGraph | |
| tokens = ( | |
| 'NUMBER', 'MINUS', | |
| 'PLUS', 'TIMES', 'DIVIDE', | |
| 'LPAREN', 'RPAREN', 'PRINT', | |
| 'EQUALS', 'NAME', 'IF', 'SEMICOLON', | |
| 'GTH', 'LTH', 'GTHOREQUAL', 'LTHOREQUAL', 'EQUALEQUAL', 'NOTEQUAL', ) |
| # Prepare env | |
| timedatectl set-ntp true | |
| timedatectl set-timezone Europe/Paris | |
| # Partition disk | |
| parted /dev/sda mklabel gpt | |
| parted -a optimal /dev/sda mkpart primary fat32 0% 512MB | |
| parted /dev/sda set 1 esp on | |
| parted -a optimal /dev/sda mkpart primary linux-swap 512MB 2560MB | |
| parted -a optimal /dev/sda mkpart primary ext4 2560MB 100% |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": null, | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, |
1 shard, 0 replica.
Update default template:
curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}'