当前位置:网站首页>Es source code reading (I) "suggestions collection"
Es source code reading (I) "suggestions collection"
2022-07-25 08:40:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
Start process analysis :
entrance :org.elasticsearch.bootstrap.Elasticsearch->org.elasticsearch.bootstrap.Bootstrap->
Build instance -> Write process number -> Initialize configuration file -> Initialize the setting instance -> function -> Turn off processing
In the process of initializing and setting the instance Initialize with the initialized configuration file node example , And set the closing processing . Initializing node In the process , Initializing is InternalNode example . Among them start In the method Use guice frame , Load different modules . First load Discovery.class example , Then set its routing service . According to the configuration, you can generate LocalDiscovery and ZenDiscovery. Then initialize MappingUpdateAction. Start the related thread . Then load... In turn :IndicesService, and IndexingMemoryController,IndicesClusterStateService,IndicesTTLService RiversManager,SnapshotsService, TransportService Start a series of worker threads . ClusterService ,RoutingService,SearchService,MonitorService,RestController.
LocalGatewayAllocator initialization
start-up DiscoveryService Start the related thread , initialization GatewayService, start-up HTTPServer Start the related thread , initialization BulkUdpService, initialization ResourceWatcherService, initialization TribeService All the above components are set to the startup state .
When Es When processing a request , Relevant... Will be created according to the request EVENT, Then relate it to a series of listener The combination is handed over to the thread pool for execution , Total execution process , Will traverse each listener, The parameter passed is Event, Then do something about it .
Next, we will analyze the source code in combination with the actual instance when creating the index .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/108841.html Link to the original text :https://javaforall.cn
边栏推荐
- C语言基础
- Refreshing mobile terminal personal center page
- Data warehouse ODS, DWD floor, 220616, HM,
- 【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)
- LabVIEW experiment - temperature detection system (experimental learning version)
- Redis4.0.14 sentinel automatic failover failed
- [dark horse programmer] redis learning notes 002: persistence: RDB and AOF
- 【黑马程序员】Redis学习笔记004:主从复制+哨兵模式+集群
- Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template
- [dark horse programmer] redis learning notes 003: redis transactions
猜你喜欢

uni-app

JS cool rolling picture deformation animation JS special effects

SSM+JSP+MYSQL实现的宠物领养收养管理系统源码

技术面②Mysql中的索引(index)类型有哪些并简要介绍一下?什么时候需要创建索引?什么时候不需要创建索引?为什么创建索引后查询速度会提高?

第3章业务功能开发(查询线索)

【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)
![[dark horse programmer] redis learning notes 005: enterprise level solutions](/img/76/959d18994ab9eb170cbdbdccbe94e7.png)
[dark horse programmer] redis learning notes 005: enterprise level solutions

【无标题】

Wechat reservation of small program completion works (5) assignment book of small program graduation project

Refreshing mobile terminal personal center page
随机推荐
【芝麻街一家】& Bert Bart RoBERTa
孙子兵法随感
Foundation 32: page element positioning method XPath --- axis positioning method
Apartment repair reporting system (idea, SSM, MySQL)
OpenGL es to realize the visualization of real-time audio
Redis最佳实践
【黑马程序员】Redis学习笔记002:持久化:RDB 和 AOF
Wechat reservation applet graduation design of applet completion works (2) applet function
nuscenes数据集3D MOT demo,端到端的目标检测和跟踪,检测跟踪联合框架
Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID
OpenGL es to achieve the effect of "big head, small head" and "head shaking"
@Use of Autowired
Record the process of two multi terminal troubleshooting
The fifth day of MATLAB learning (cycle type)
Dirty data and memory leakage of ThreadLocal
Tips for improving code sustainability, take connectto method as an example.
Idea reads configuration files such as validationmessages.properties Chinese garbled
Graduation project of wechat small program ordering system of small program completion works (6) opening defense ppt
Database persistence +jdbc database connection
Redis best practices