Anmerkung

 

aufgabe.  

 

 

  1.  

  2.  

  3.  

  4.  

 

  •  

    # stop mongoDB service
    net stop SnowMongoDB 
    
    # the current path that mongoDB installed, VERIFY IT IS ALIGNED WITH YOUR INSTALLATION DIRECTORY
    $mongoDbFolderPath = "C:\Program Files\Snow Software\Snow License Manager\Services\MongoDB\"
    # new path to store data, ENTER YOUR DESIRED PATH
    $mongoDBStoragePath = "E:\Snow Software\MongoDBStorage\"
    
    # log path
    $logPath = $mongoDbFolderPath + "log\mongod.log"
    
    # data storage path 
    $dataFolderPath = $mongoDbFolderPath + "data"
    $newDataFolderPath = $mongoDBStoragePath + "data"
    
    # create target path if missing
    if (!(Test-Path -path $mongoDBStoragePath)) {
        New-Item -ItemType Directory -Force -Path $mongoDBStoragePath
    }
    
    # move folder to new locations
    if (Test-Path -path $dataFolderPath ) {
        $bin_path = $mongoDbFolderPath+ "bin"
        cd "$bin_path"
        .\mongod.exe --dbpath="' + $newDataFolderPath + '"
    
        # Saving permissions to data folder
        $acl = (Get-Item $dataFolderPath).GetAccessControl('Access')
        Move-Item -Path $dataFolderPath -Destination $newDataFolderPath -force
    
        # restoring permissions after data folder is moved
        $acl | Set-Acl $newDataFolderPath
        $lock = $newDataFolderPath + "\mongod.lock"
        Remove-Item $lock
    
        # run mongodb against new folders
        $exePath = $mongoDbFolderPath + 'bin\mongod.exe'
        $mongoPath= '"'+ $exePath + '" --auth --dbpath="' + $newDataFolderPath + '" --logpath="' + $logPath + '" --service'
        Set-Location HKLM:\SYSTEM\CurrentControlSet\Services\SnowMongoDB
        $mongoHKLMPath = Get-Location
        Set-ItemProperty -path $mongoHKLMPath -name ImagePath -Value $mongoPath
        Set-Location C:
        net start SnowMongoDB
    }
aufgabe.  

 

 

  •  

     

     

     

     

     

     

     

    "Serilog": {
    2    "MinimumLevel": {
    3      "Default": "Information",
    4      "Override": {
    5        "Microsoft": "Information",
    6        "System": "Warning"
    7      }
    8    }
    9  }

     

     

     

     

    "ConnectionStrings": {
    2    "MongoDBConnectionString": "mongodb://CacheServerAdmin:password@127.0.0.1:27017/cacheServer"
    3  }

     

     

    "NatsEventBusServer": {
    2    "Name": "nats",
    3    "Address": "localhost",
    4    "Port": "4222",
    5    "EnableDataBroker": false
    6  }

     

     

     

     

     

     

    "CachingManualParallelizationCount" : 0

     

     

    "DailyInvalidationTime": "18:00:00"

     

     

     

     

     

    "CachingTimeLimitHours": 6,
    2"CachingSchedule": {
    3    "Interval": "Daily",
    4    "StartDateTime": "2021-01-02T00:01:00"
    5}

     

     

     "MongoDbDataChunkSize": 10000

     

     

     

    "Compliance": {
    2    "BaseUrl": "http://localhost:8522",
    3    "StatusEndpoint": "licensing/{0}/status"
    4  }
Beispiel 33.

 

"CachingTimeLimitHours": 6,
  "CachingSchedule": {
    "Interval": "Weekly",
    "StartDateTime": "2021-01-02T00:01:00"
  }

 

 

  •  

  •  

 

  1.  

     

  2.  

  3.  

     

  4.