mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Removing memory locks, as they are not needed (https://github.com/elastic/elasticsearch/issues/22734)
This commit is contained in:
		
							parent
							
								
									dbccb42a69
								
							
						
					
					
						commit
						c1445eb22b
					
				| 
						 | 
					@ -39,19 +39,6 @@ $STD sed -i -E 's/## -Xms[0-9]+[Ggm]/-Xms3g/' /etc/elasticsearch/jvm.options
 | 
				
			||||||
$STD sed -i -E 's/## -Xmx[0-9]+[Ggm]/-Xmx3g/' /etc/elasticsearch/jvm.options
 | 
					$STD sed -i -E 's/## -Xmx[0-9]+[Ggm]/-Xmx3g/' /etc/elasticsearch/jvm.options
 | 
				
			||||||
msg_ok "Elastcisearch Configured to user 3GB of RAM, adjust if needed by editing /etc/elasticsearch/jvm.options"
 | 
					msg_ok "Elastcisearch Configured to user 3GB of RAM, adjust if needed by editing /etc/elasticsearch/jvm.options"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
# msg_info "Configuring Elasticsearch Limits"
 | 
					 | 
				
			||||||
# adjust limits in  /etc/security/limits.conf
 | 
					 | 
				
			||||||
# elasticsearch soft memlock unlimited
 | 
					 | 
				
			||||||
# elasticsearch hard memlock unlimited
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# msg_info "Configuring Elasticsearch Service"
 | 
					 | 
				
			||||||
# uncomment /usr/lib/systemd/system/elasticsearch.service
 | 
					 | 
				
			||||||
# LimitMEMLOCK=infinity
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# /etc/elasticsearch/elasticsearch.yml
 | 
					 | 
				
			||||||
# bootstrap.memory_lock: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msg_info "Creating Service"
 | 
					msg_info "Creating Service"
 | 
				
			||||||
$STD /bin/systemctl daemon-reload
 | 
					$STD /bin/systemctl daemon-reload
 | 
				
			||||||
$STD /bin/systemctl enable elasticsearch.service
 | 
					$STD /bin/systemctl enable elasticsearch.service
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue