s久久亚洲综合色,大地影视mv高清视频在线观看,曰本真人性做爰全过程视频,sesewo,麻豆成人久久精品综合网址

首頁(yè) >電腦軟件 > Zookeeper Windows 3.4.5 綠色版
Zookeeper Windows 3.4.5 綠色版

Zookeeper Windows 3.4.5 綠色版

軟件大小:15.6M

軟件語(yǔ)言:簡(jiǎn)體中文

軟件類別:應(yīng)用工具

更新時(shí)間:2024-09-23

官方網(wǎng)站:

應(yīng)用平臺(tái):

高速下載

需下載高速下載器,提速50%

  • 軟件介紹
  • 軟件截圖
  • 相關(guān)軟件
  • 相關(guān)閱讀
  • 下載地址

電腦軟件推薦: Xmind Zen 2020免激活版 (已驗(yàn)證可用) vmPing v1.3.21 綠色中文版 同花順遠(yuǎn)航版 v7.9.3.1 官方版本 Windows Firewall Control v6.0.2.0

ZooKeeper 主要通過(guò)名為“znode”的數(shù)據(jù)對(duì)象來(lái)存儲(chǔ)信息。這些 znodes 組成了一個(gè)樹形目錄結(jié)構(gòu)(即所謂的“ZooKeeper 樹”),客戶端應(yīng)用程序可以在這棵樹中進(jìn)行數(shù)據(jù)的讀寫。為了保證數(shù)據(jù)的一致性和正確性,ZooKeeper 提供了多種特性:例如原子性、順序保證、通知/監(jiān)聽機(jī)制、崩潰恢復(fù)措施、監(jiān)聽事件處理機(jī)制及快速失敗重試。

因此,ZooKeeper 在大型分布式集群中扮演著不可或缺的角色:實(shí)時(shí)數(shù)據(jù)共享、集體決策、服務(wù)注冊(cè)、協(xié)調(diào)/眾包、加密/安全憑證存儲(chǔ)以及會(huì)話/上下文存儲(chǔ)等功能都依賴于 ZooKeeper 來(lái)提供支持。

ZooKeeper 安裝配置

  1. 下載并解壓縮到 C 盤。
  2. 進(jìn)入 conf 文件夾。
  3. 右鍵點(diǎn)擊“zoo_sample.cfg”,選擇用記事本打開。
  4. 在 conf 文件夾中新建名為“zoo.cfg”的文件(ZooKeeper 啟動(dòng)時(shí)會(huì)尋找此文件作為默認(rèn)配置文件),并用記事本打開,將“zoo_sample.cfg”中的內(nèi)容拷貝到新建的“zoo.cfg”中,并進(jìn)行必要的修改,例如:
    # The number of milliseconds of each tick
    tickTime=2000
    # The number of ticks that the initial
    # synchronization phase can take
    # initLimit=10
    # The number of ticks that can pass between
    # sending a request and getting an acknowledgement
    # syncLimit=5
    # the directory where the snapshot is stored.
    # do not use /tmp for storage, /tmp here is just
    # example sakes.
    dataDir=C:/zookeeper-3.4.5/data
    # the port at which the clients will connect
    clientPort=2181
    #
    # Be sure to read the maintenance section of the
    # administrator guide before turning on autopurge.
    #
    # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
    #
    # The number of snapshots to retain in dataDir
    #autopurge.snapRetainCount=3
    # Purge task interval in hours
    # Set to "0" to disable auto purge feature
    #autopurge.purgeInterval=1
    

至此,ZooKeeper 在 Windows 操作系統(tǒng)中的安裝配置完成。但需注意,ZooKeeper 是用 Java 編寫的,因此在運(yùn)行之前必須配置 JDK,且 JDK 版本應(yīng)為 1.6 或更高。

ZooKeeper 使用說(shuō)明

  1. 打開 bin 文件夾,找到“zkServer.cmd”和“zkCli.cmd”,然后運(yùn)行。下面的 .sh 文件是為 Linux 用戶準(zhǔn)備的。需要注意的是,先啟動(dòng)“zkServer.cmd”服務(wù)端,再啟動(dòng)“zkCli.cmd”客戶端。
  2. 最后,不要關(guān)閉這兩個(gè) cmd 窗口。

ZooKeeper 原理

  1. 選舉 Leader。
  2. 同步數(shù)據(jù)。
  3. 盡管選舉 Leader 的算法有很多,但目標(biāo)標(biāo)準(zhǔn)是一致的。
  4. Leader 必須具有最高的 zxid。
  5. 集群中的大多數(shù)機(jī)器響應(yīng)并跟隨選出的 Leader。

ZooKeeper 特點(diǎn)

在 ZooKeeper 中,znode 是類似于 Unix 文件目錄結(jié)構(gòu)的節(jié)點(diǎn),可以在其中存放或讀取數(shù)據(jù)。如果在創(chuàng)建 znode 時(shí)設(shè)置為 EPHEMERAL,當(dāng)建立此 znode 的節(jié)點(diǎn)與 ZooKeeper 斷開連接后,該 znode 將不再存在。ZooKeeper 使用 Watcher 機(jī)制來(lái)處理事件通知。當(dāng)客戶端接收到事件信息,如網(wǎng)絡(luò)超時(shí)、節(jié)點(diǎn)數(shù)據(jù)變化或子節(jié)點(diǎn)更改時(shí),可以觸發(fā)相應(yīng)的行為。ZooKeeper 的 Wiki 頁(yè)面介紹了如何利用 ZooKeeper 處理程序通知、序列、堆排序、鎖、共享鎖、可撤銷共享鎖以及兩階段提交。

那么,ZooKeeper 可以做什么呢?例如,如果有 20 臺(tái)搜索引擎服務(wù)器(每臺(tái)處理總索引的一部分)和一個(gè)總服務(wù)器(負(fù)責(zé)向這 20 臺(tái)搜索引擎發(fā)送查詢請(qǐng)求并合并結(jié)果),一個(gè)備用總服務(wù)器(在總服務(wù)器崩潰時(shí)接替其工作)以及一個(gè) Web CGI(向總服務(wù)器發(fā)送查詢請(qǐng)求)。這 20 臺(tái)搜索引擎服務(wù)器中有 15 臺(tái)提供搜索服務(wù),5 臺(tái)進(jìn)行索引構(gòu)建。ZooKeeper 可以確保總服務(wù)器自動(dòng)檢測(cè)到多少臺(tái)服務(wù)器正在提供搜索服務(wù),并在總服務(wù)器崩潰時(shí)自動(dòng)啟動(dòng)備用服務(wù)器。

以上就是 ZooKeeper 客戶端的介紹!

軟件截圖
  • Zookeeper Windows 3.4.5 綠色版
  • Zookeeper Windows 3.4.5 綠色版下載地址

相關(guān)軟件

相關(guān)閱讀