Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

[v6.4.0] Master node does not send cached data to mirror node

Discussion in 'Cache Server' started by h1r0sh1ma, Jan 22, 2021.

  1. h1r0sh1ma

    h1r0sh1ma

    Joined:
    Jan 20, 2021
    Posts:
    1
    I have simple 2 nodes topology: master node - mirror node(ip addr: 192.168.77.12).
    Servers can access each other on default port 8126.

    My config yml:
    Code (CSharp):
    1.  
    2. Cache:
    3.   defaultModule: cache_fs
    4.   options:
    5.    processor:
    6.      putWhitelist: []
    7.    cache_ram:
    8.      cachePath: /var/lib/unity-cache-server/cache_ram
    9.      pageSize: 100000000
    10.      maxPageCount: 100
    11.      minFreeBlockSize: 1024
    12.      persistence: true
    13.      persistenceOptions:
    14.        autosave: true
    15.        autosaveInterval: 10000
    16.        throttledSaves: false
    17.      highReliability: false
    18.      highReliabilityOptions:
    19.        reliabilityThreshold: 2
    20.        saveUnreliableVersionArtifacts: true
    21.        multiClient: false
    22.    cache_fs:
    23.      cachePath: /var/lib/unity-cache-server/cache_fs
    24.      cleanupOptions:
    25.        expireTimeSpan: P30D
    26.        maxCacheSize: 0
    27.      persistence: true
    28.      persistenceOptions:
    29.        autosave: true
    30.        autosaveInterval: 10000
    31.        throttledSaves: false
    32.      highReliability: false
    33.      highReliabilityOptions:
    34.        reliabilityThreshold: 2
    35.        saveUnreliableVersionArtifacts: true
    36.        multiClient: false
    37. Mirror:
    38.   addresses: [192.168.77.12]
    39.   options:
    40.    queueProcessDelay: 2000
    41.    connectionIdleTimeout: 10000
    42. Server:
    43.   port: 8126
    44.   options:
    45.    allowIpv6: false
    46. Global:
    47.   logLevel: 4
    48.  
    During the unity-cache-server startup on master node i see the following entries in log:
    Code (CSharp):
    1.  
    2. unity-cache-server ucs[27713]: [Cluster:M] [TransactionMirror] Mirroring transactions to 192.168.77.12:8126
    3. unity-cache-server ucs[27713]: [Cluster:1] [TransactionMirror] Connecting to 192.168.77.12:8126
    4.  
    On my mirror node, using tcpdump i can see that the master node is sending initial handshake.
    The problem is:
    When unity sends data to the master node cache the data reflects on master node only and doesnt sending on mirror node.
    I have also tried to start unity-cache-server service on master node like this:
    Code (CSharp):
    1.  
    2. node /usr/bin/unity-cache-server --workers 1 --mirror 192.168.77.12:8126  --cache-module cache_fs --NODE_CONFIG_DIR=/etc/unity-cache-server
    3.  
    After it started up i can see this process in process tree with --mirror 192.168.77.12:8126 option , but the cached data doesnt reflects on mirror node either.
     
unityunity