2017-05-18 49 views
1

我在非生產RHEL6服務器上運行Elasticsearch。我只有一個沒有root權限的普通用戶帳戶。我處於一個非常鎖定的企業環境中,因此獲得root權限將非常耗時,而且我需要一個解決方法。我可以禁用Elasticsearch 5.4中的引導程序檢查嗎?

當我開始的過程中,我得到這些錯誤:

max file descriptors [8192] for elasticsearch process is too low, increase to at least [65536] 
max number of threads [1024] for user [salimfadhley] is too low, increase to at least [2048] 
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 

有沒有一種方法,使ElasticSearch忽略此錯誤狀態和剛剛啓動。

我完全意識到,忽略錯誤通常被認爲是不明智的,然而在這種情況下,我只需要讓ES啓動並運行,這樣我就可以將我的注意力投入到此項目的其他方面:提高系統限制比我現在有更多的時間。

+0

嗨再次;)。這是關於ELS的一個非常技術性的問題。我懷疑這個人能否真正回答這個問題,除非這個人從事ELS開發工作。您應該向[Elasticsearch論壇](https://discuss.elastic.co/c/elasticsearch)或[Elasticsearch GitHub](https://github.com/elastic/elasticsearch)提出這個問題。 –

+0

[官方文檔](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/bootstrap-checks.html#_development_vs_production_mode)介紹瞭如何禁用這些檢查。 (提示:綁定到本地主機而不是外部網絡接口,所以你被認爲是在「開發」模式下運行) – Val

+0

我看到了 - 不幸的是它運行在服務器上,所以綁定到本地主機可能沒那麼有用。 –

回答

0

是的,你可以!

(我發現)這非常髒,但是如果您將discovery.type配置爲single-node,則不會運行引導程序檢查。

是的,這意味着您無法在筆記本電腦中測試集羣。

請參閱https://github.com/elastic/elasticsearch/issues/21655

+0

你可以用localhost綁定所有節點來創建一個集羣:) –

+0

的確如此,但我認爲大多數人都會使用Docker和官方的elasticsearch映像,而這根本就不方便! –

相關問題