01 2024 档案
摘要:生产环境使用同一个ip和端口部署父子应用,所以和本地运行有所区别, 区别1:主应用中子应用的注册: var apps = [ { name: 'cw-wfw1', entry: '/child1/', //入口文件不同,本地为entry: '//localhost:10001', container
阅读全文
摘要:1、创建索引:PUT fmmallproductsindex,所有单词要求小写 CreateIndexRequest fmmallProductsIndex = new CreateIndexRequest("fmmallproductsindex"); CreateIndexResponse cr
阅读全文
摘要:创建索引模板:所有以fmmall和bar开头的索引将使用如下的模板创建索引 PUT _template/template_1?order=0 { "index_patterns": [ "fmmall*", "bar*" ], "settings": { "number_of_shards": 1
阅读全文
摘要:nginx负载均衡配置: upstream myservers { server localhost:8081; server localhost:8082; } server { listen 8080; server_name localhost; location / { proxy_pass
阅读全文
摘要:lru是Least Recently Used的缩写,也就是「最近很少使用」 LFU:Least Frequently Used的缩写,也就是「最近使用频次最少」 # volatile-lru -> Evict using approximated LRU among the keys with a
阅读全文
摘要:集群的目的:解决redis的高可用及高并发 搭建流程: 搭建三主三备集群 一、集群的搭建 1、配置文件修改 2、启动6个服务: 3、集群启动命令(启动前记得开放阿里云端口7001/7006和17001/17006): redis-cli --cluster create 101.201.100.20
阅读全文