2016-11-19 11 views
1

단일 서버 모드에서 Aerospike 서버를 실행하려고합니다. 지금은이 구성이 있습니다단일 서버에 대한 Aerospike 하트 비트 구성 오류 "노드 ID에 적합한 네트워크 장치를 찾을 수 없습니다"

service { 
    paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1. 
    service-threads 4 
    transaction-queues 4 
    transaction-threads-per-queue 4 
    proto-fd-max 15000 
} 

logging { 
    console { 
     context any info 
    } 
} 

network { 
    service { 
     address 127.0.0.1 
     port 3000 
    } 

    heartbeat { 
     mode multicast 
     multicast-group 239.1.99.222 
     port 9918 

     # To use unicast-mesh heartbeats, remove the 3 lines above, and see 
     # aerospike_mesh.conf for alternative. 

     interval 150 
     timeout 10 
    } 

    fabric { 
     port 3001 
    } 

    info { 
     port 3003 
    } 
} 

namespace test { 
    replication-factor 1 
    memory-size 20M 
    default-ttl 1d # 30 days, use 0 to never expire/evict. 

    storage-engine memory 
} 

를 내가 서버를 시작하려고 할 때 로그에 오류가 발생했습니다 :

"노드 ID에 대한 적절한 네트워크 장치를 찾을 수 없습니다"

인터넷에 서버를 설치하고 싶지 않습니다. 어떻게 해결하고 문제를 해결할 수 있습니까?

답변

2

노드 ID는 호스트의 인터페이스의 MAC ID를 사용하여 생성됩니다.

https://github.com/aerospike/aerospike-server/blob/master/cf/src/socket.c#L2470

당신은 당신이 오류를 얻을 수 있습니다, aerospike가 알고있는 기본 인터페이스 이름 중 하나를 해달라고합니다.

이 문제를 해결하려면 인터페이스 이름을 지정하면됩니다. 인터넷에 aerospike 노드를 노출을 방지하기 위해

http://www.aerospike.com/docs/operations/troubleshoot/startup#problem-with-network-interface

, 당신은 단지 개인 인터페이스 로컬 호스트 또는에 유일한 결합 또는 방화벽이나 ACL로 서버 포트 노출되지 않도록하기 위해 다른 네트워크 도구/장치를 사용할 수 있습니다. 인터넷에 aerospike가 노출되지 않도록하는 가장 좋은 방법은 aerospike를 호스팅하는 서버가 인터넷에 노출되지 않도록하는 것입니다. 그것이 가능하지 않다면, 방화벽을 사용하여 aerospike 클라이언트 IP에 대한 귀하의 에어로 스포이크 포트 액세스를 제한하십시오. 또한 Enterprise Edition에서 사용 가능한 데이터베이스 자격 증명을 사용할 수 있습니다.

http://www.aerospike.com/docs/guide/security.html

+1

네트워크 인터페이스 이름 버전 3.10에서 사용되지 않는 노드-ID 인터페이스로 대체되었습니다. 참조 : http://www.aerospike.com/docs/reference/configuration#network-interface-name 및 http://www.aerospike.com/docs/reference/configuration#node-id-interface – Meher