在具有50個羣集的高可用性環境(兩個DC,主要和備用)中。每個羣集中有5到6個節點。我想確保每個羣集中的所有節點都是「Online」(狀態),並在「Primary」(OwnerNode)中運行。任何顯示其他節點都必須注意。 我正在使用數組將所需信息存儲在foreach循環中。問題是,編譯時間太長。我想盡快完成它。 $Clusternodes= * some 50 elements *
$Stan
我做了一個獨立的Apache集羣7個。要運行Scala代碼,代碼是 /** Our main function where the action happens */
def main(args: Array[String]) {
// Set the log level to only print errors
Logger.getLogger("org").setL