> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB Sürüm Yükseltme

> MongoDB Replicalarını 4.4 sürümünden 8.0 sürümüne kesintisiz bir şekilde güncelleyebilir. MongoDB 8.0 sürümüne direkt olarak 4.4 sürümünden geçmek mümkün olmadığı için her bir ana sürüm arasında kademeli bir geçiş yapabilir, secondary ve primary node'ları sırayla güncelleyebilir ve özellik uyumluluğu ayarlarını yönetebilir.

<Warning>
  **Çok Önemli**

  Çalışma gerçekleştirilmeden önce MongoDB yedeği alınmalıdır:

  ```bash theme={null}
  mongodump --host <IP_ADDRESS> --port=25080 --username=<USERNAME> --password=<PASSWORD> --authenticationDatabase=admin --gzip --archive=/<DIRECTORY>/apinizer-backup-v<CURRENT_VERSION>--<DATE>--1.archive
  ```
</Warning>

<Note>
  Bu örnek Ubuntu 22.04 üzerinde gerçekleştirilmiştir.
</Note>

## MongoDB 4.4'ten 5.0'a Yükseltme

### 1) Secondary Node'ları MongoDB 4.4'ten 5.0'a Güncelleme

İlk olarak, tüm MongoDB secondary node'larının **her biri teker teker** 5.0 sürümüne güncellenir.

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 5.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 5.0 anahtarı eklenir
    wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -

    # MongoDB 5.0 Repository'si eklenir
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 5.0'ı yükleyin">
    <Warning>
      Güncellemeyi yüklerken soracağı config dosyasını güncelleme sorusuna **N** ile cevap vererek mevcut konfigürasyon dosyanızı korumanız gereklidir.
    </Warning>

    ```bash theme={null}
    sudo apt install -y mongodb-org=5.0.6 mongodb-org-server=5.0.6 mongodb-org-shell=5.0.6 mongodb-org-mongos=5.0.6 mongodb-org-tools=5.0.6
    ```
  </Step>
</Steps>

<Warning>
  **Çok Önemli**

  Yükleme esnasında sistem config dosyasının yeniden yazıp yazmayacağını sorar, burada eğer yanlışlıkla konfigürasyon dosyası ezilirse eski ayara döndürülmesi gerekir.

  ```bash theme={null}
  # sudo vi /etc/mongod.conf
  # Eski dosya varsayılan olarak aşağıdaki gibidir
  ```

  ```yaml theme={null}
  storage:
    dbPath: /var/lib/mongodb
    wiredTiger:
      engineConfig:
        cacheSizeGB: 2

  systemLog:
    destination: file
    logAppend: true
    path: /var/log/mongodb/mongod.log

  net:
    port: 25080
    bindIp: 0.0.0.0

  replication:
    replSetName: apinizer-replicaset

  security:
    authorization: enabled
    keyFile: /etc/mongodb/keys/mongo-key

  setParameter:
    transactionLifetimeLimitSeconds: 300

  processManagement:
    timeZoneInfo: /usr/share/zoneinfo
  ```
</Warning>

<Steps>
  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumu kontrol edilir:

    ```bash theme={null}
    mongo mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in Durumu Kontrol Edilir
    rs.status()
    ```
  </Step>
</Steps>

### 2) Primary Rolündeki Bir Node'u Secondary Rolüne Çekme

Primary node'a bağlanılıp primary node'un görevini secondary'e düşürerek yeni bir primary node seçilmesi sağlanır.

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongo mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p
    ```
  </Step>

  <Step title="Primary Node'u Secondary Node'a düşürün">
    ```bash theme={null}
    # Primary Node'u Secondary Node'a düşürülür
    rs.stepDown()
    ```
  </Step>

  <Step title="Yeni Primary Node'u kontrol edin">
    Biraz bekleyerek Secondary Node'lardan birisinin Primary Node olduğu kontrol edilir:

    ```bash theme={null}
    rs.status()
    ```
  </Step>
</Steps>

### 3) Primary Rolünü Bırakan Node'u MongoDB 4.4'ten 5.0'a Güncelleme

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 5.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 5.0 anahtarını ekleyin ve repository'i güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 5.0'ı yükleyin">
    <Warning>
      Güncellemeyi yüklerken soracağı config dosyasını güncelleme sorusuna **N** ile cevap vererek mevcut konfigürasyon dosyanızı korumanız gereklidir.
    </Warning>

    ```bash theme={null}
    sudo apt install -y mongodb-org=5.0.6 mongodb-org-server=5.0.6 mongodb-org-shell=5.0.6 mongodb-org-mongos=5.0.6 mongodb-org-tools=5.0.6
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumu kontrol edilir:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 4) MongoDB 5.0 Özellik Uyumu Kontrolü

Bütün Node'lar MongoDB 5.0'a geçtikten sonra, MongoDB 6.0'a geçiş yapmadan önce özellik uyumluluğu ayarı 5.0'a ayarlanır **(Primary Node'da)**.

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    use admin
    ```
  </Step>

  <Step title="Özellik uyumluluğunu kontrol edin">
    Aşağıdaki komutun çıktısı olarak özellik uyumu eğer 4 gözüküyorsa 5'e güncellenmesi gerekir:

    ```bash theme={null}
    db.runCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
    ```
  </Step>

  <Step title="Özellik uyumluluğunu güncelleyin">
    Eğer değer 5.0 değilse, bunu aşağıdaki komutla değiştirebilirsiniz:

    ```bash theme={null}
    db.adminCommand({ setFeatureCompatibilityVersion: "5.0" })
    ```
  </Step>
</Steps>

## MongoDB 5.0'dan 6.0'a Yükseltme

### 5) Secondary Node'ları MongoDB 5.0'dan 6.0'a Güncelleme

Tüm MongoDB replicalarının 5.0 sürümüne geçtiğinden emin olduktan sonra, 6.0 sürümüne geçiş yapabilirsiniz. İlk olarak, tüm secondary node'ları **sırayla** güncelleyerek başlayın.

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 6.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 6.0 anahtarını eklenir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 6.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=6.0.0 mongodb-org-server=6.0.0 mongodb-org-shell=6.0.0 mongodb-org-mongos=6.0.0 mongodb-org-tools=6.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 6) Primary Rolündeki Bir Node'u Secondary Rolüne Çekme

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p
    ```
  </Step>

  <Step title="Primary Node'u Secondary Node'a düşürün">
    ```bash theme={null}
    # Primary Node'u Secondary Node'a düşürülür
    rs.stepDown()
    ```
  </Step>

  <Step title="Yeni Primary Node'u kontrol edin">
    Biraz bekleyerek yükseltme yapılan Secondary Node'lardan birisinin Primary olduğu kontrol edilir:

    ```bash theme={null}
    rs.status()
    ```
  </Step>
</Steps>

### 7) Primary Rolünü Bırakan Node'u MongoDB 5.0'dan 6.0'a Güncelleme

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 6.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 6.0 anahtarını eklenilir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 6.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=6.0.0 mongodb-org-server=6.0.0 mongodb-org-shell=6.0.0 mongodb-org-mongos=6.0.0 mongodb-org-tools=6.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 8) MongoDB 6.0 Özellik Uyumu Kontrolü

Bütün Node'lar MongoDB 6.0'a geçtikten sonra, özellik uyumluluğu ayarı 6.0'a ayarlanır **(Primary Node'da)**.

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    use admin
    ```
  </Step>

  <Step title="Özellik uyumluluğunu kontrol edin">
    Aşağıdaki komutun çıktısı olarak özellik uyumu eğer 5 gözüküyorsa 6'ya güncellenmesi gerekir:

    ```bash theme={null}
    db.runCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
    ```
  </Step>

  <Step title="Özellik uyumluluğunu güncelleyin">
    Eğer değer 6.0 değilse, bunu aşağıdaki komutla değiştirebilirsiniz:

    ```bash theme={null}
    db.adminCommand( { setFeatureCompatibilityVersion: "6.0" } )
    ```
  </Step>
</Steps>

## MongoDB 6.0'dan 7.0'a Yükseltme

### 9) Secondary Node'ları MongoDB 6.0'dan 7.0'a Güncelleme

Tüm MongoDB replicalarının 6.0 sürümüne geçtiğinden emin olduktan sonra, 7.0 sürümüne geçiş yapabilirsiniz. İlk olarak, tüm secondary node'ları **sırayla** güncelleyerek başlayın.

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 7.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 7.0 anahtarını eklenir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 7.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=7.0.0 mongodb-org-server=7.0.0 mongodb-org-shell=7.0.0 mongodb-org-mongos=7.0.0 mongodb-org-tools=7.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 10) Primary Rolündeki Bir Node'u Secondary Rolüne Çekme

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p
    ```
  </Step>

  <Step title="Primary Node'u Secondary Node'a düşürün">
    ```bash theme={null}
    # Primary Node'u Secondary Node'a düşürülür
    rs.stepDown()
    ```
  </Step>

  <Step title="Yeni Primary Node'u kontrol edin">
    Biraz bekleyerek yükseltme yapılan Secondary Node'lardan birisinin Primary olduğu kontrol edilir:

    ```bash theme={null}
    rs.status()
    ```
  </Step>
</Steps>

### 11) Primary Rolünü Bırakan Node'u MongoDB 6.0'dan 7.0'a Güncelleme

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 7.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 7.0 anahtarını eklenir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 7.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=7.0.0 mongodb-org-server=7.0.0 mongodb-org-shell=7.0.0 mongodb-org-mongos=7.0.0 mongodb-org-tools=7.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 12) MongoDB 7.0 Özellik Uyumu Kontrolü

Bütün Node'lar MongoDB 7.0'a geçtikten sonra, özellik uyumluluğu ayarı 7.0'a ayarlanır **(Primary Node'da)**.

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    use admin
    ```
  </Step>

  <Step title="Özellik uyumluluğunu kontrol edin">
    Aşağıdaki komutun çıktısı olarak özellik uyumu eğer 6 gözüküyorsa 7'ye güncellenmesi gerekir:

    ```bash theme={null}
    db.runCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
    ```
  </Step>

  <Step title="Özellik uyumluluğunu güncelleyin">
    Eğer değer 7.0 değilse, bunu aşağıdaki komutla değiştirebilirsiniz:

    ```bash theme={null}
    db.adminCommand( { setFeatureCompatibilityVersion: "7.0", confirm: true } )
    ```
  </Step>
</Steps>

## MongoDB 7.0'dan 8.0'a Yükseltme

### 13) Secondary Node'ları MongoDB 7.0'dan 8.0'a Güncelleme

Tüm MongoDB replicalarının 7.0 sürümüne geçtiğinden emin olduktan sonra, 8.0 sürümüne geçiş yapabilirsiniz. İlk olarak, tüm secondary node'ları **sırayla** güncelleyerek başlayın.

<Note>
  RHEL sunucularda yükseltme yapıyorsanız, paket yöneticisi `apt` yerine `dnf` olduğu için yükseltme komutları aşağıdaki şekilde değişir:

  ```bash theme={null}
  dnf clean all
  dnf makecache

  # Son sürüme güncellemek için
  dnf upgrade mongodb-org\*
  ```
</Note>

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 8.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 8.0 anahtarını eklenir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 8.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=8.0.0 mongodb-org-server=8.0.0 mongodb-org-shell=8.0.0 mongodb-org-mongos=8.0.0 mongodb-org-tools=8.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 14) Primary Rolündeki Bir Node'u Secondary Rolüne Çekme

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p
    ```
  </Step>

  <Step title="Primary Node'u Secondary Node'a düşürün">
    ```bash theme={null}
    # Primary Node'u Secondary Node'a düşürülür
    rs.stepDown()
    ```
  </Step>

  <Step title="Yeni Primary Node'u kontrol edin">
    Biraz bekleyerek yükseltme yapılan Secondary Node'lardan birisinin Primary olduğu kontrol edilir:

    ```bash theme={null}
    rs.status()
    ```
  </Step>
</Steps>

### 15) Primary Rolünü Bırakan Node'u MongoDB 7.0'dan 8.0'a Güncelleme

<Steps>
  <Step title="MongoDB servisini durdurun">
    ```bash theme={null}
    sudo apt-mark unhold mongo*
    sudo systemctl stop mongod
    ```
  </Step>

  <Step title="MongoDB 8.0 repository'sini ekleyin">
    ```bash theme={null}
    # MongoDB 8.0 anahtarını eklenir ve repository güncellenir
    wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | sudo apt-key add -
    echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list

    sudo apt update
    ```
  </Step>

  <Step title="MongoDB 8.0'ı yükleyin">
    ```bash theme={null}
    # Güncelleme yüklenilir
    sudo apt install -y mongodb-org=8.0.0 mongodb-org-server=8.0.0 mongodb-org-shell=8.0.0 mongodb-org-mongos=8.0.0 mongodb-org-tools=8.0.0
    ```
  </Step>

  <Step title="MongoDB servisini başlatın">
    ```bash theme={null}
    sudo apt-mark hold mongo*
    sudo systemctl start mongod
    sudo systemctl status mongod
    ```
  </Step>

  <Step title="Replica set durumunu kontrol edin">
    Herhangi bir node'a bağlanarak replica set'in durumunu kontrol edin:

    ```bash theme={null}
    mongosh mongodb://<NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    # Replica-Set'in durumu kontrol edilir
    rs.status()
    ```
  </Step>
</Steps>

### 16) MongoDB 8.0 Özellik Uyumu Kontrolü

Bütün Node'lar MongoDB 8.0'a geçtikten sonra, özellik uyumluluğu ayarı 8.0'a ayarlanır **(Primary Node'da)**.

<Steps>
  <Step title="Primary Node'a bağlanın">
    ```bash theme={null}
    mongosh mongodb://<PRIMARY_NODE_IP>:25080 --authenticationDatabase "admin" -u "apinizer" -p

    use admin
    ```
  </Step>

  <Step title="Özellik uyumluluğunu kontrol edin">
    Aşağıdaki komutun çıktısı olarak özellik uyumu eğer 7 gözüküyorsa 8'e güncellenmesi gerekir:

    ```bash theme={null}
    db.runCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
    ```
  </Step>

  <Step title="Özellik uyumluluğunu güncelleyin">
    Eğer değer 8.0 değilse, bunu aşağıdaki komutla değiştirebilirsiniz:

    ```bash theme={null}
    db.adminCommand( { setFeatureCompatibilityVersion: "8.0", confirm: true } )
    ```
  </Step>
</Steps>
