Change used eth


#1

Hi, The server has two network ports. Only one of them used. I need to connect the patchcord from used port to the free. IP address will not change, only new MAC. I need to do this on the whole cluster. Can I just reconf eth and restart the network withot stopping asd?


#2

Please share your Aerospike.conf.

I believe this would work, but there are some settings can prevent it from working.


#3
service {
		user aerospike
		group aerospike
		paxos-single-replica-limit 1
		pidfile /var/run/aerospike/asd.pid
		service-threads 32
		transaction-queues 32
		transaction-threads-per-queue 4
		proto-fd-max 65535
}

logging {
		file /var/log/aerospike/aerospike.log {
				context any info
		}
}

network {
		service {
				address any
				port 3000
				access-address 10.0.0.20
		}

		heartbeat {
				mode multicast
				multicast-group 239.6.103.78
				port 9918
				address 10.0.0.20

				interval 150
				timeout 10
		}

		fabric {
				port 3001
		}

		info {
				port 3003
		}
}

namespaces....

namespace like:

namespace test {
	   replication-factor 1
	   migrate-sleep 500
	   memory-size 2G
	   default-ttl 2592000

	   storage-engine device {
			   file /opt/aerospike/data/test.data
			   filesize 2G
			   data-in-memory true

			   defrag-lwm-pct 50
			   defrag-startup-minimum 1
			   write-block-size 128K
	   }
}

asd is latest by now.

And, will the very active rebalancing of data between nodes after restarting the network? Because I read that the node identify includes part of the MAC address, or not?. And if the MAC changes, then maybe…


#4

So again I think this will work, but it isn’t something that is tested. Your network configuration is generic so if it were going to work your config would be ideal.

This is true but you aren’t restarting the nodes, so the nodes will continue to operate with the Node IDs based on the other NICs MAC address (assuming it works after the switch). When a node is eventually restarted, for maintenance or update, the Node ID will change and partitions will shuffle.


#5

Is used full MAC? No affect if MACs are like 78:45:c4:f8:dd:85 and 78:45:c4:f8:dd:86 ? Or maybe there is a way “to deceive” the asd in this NICs MAC? :slight_smile:


#6

The full MAC and HB port are used in generating a Node ID.


#7

Ok, Thanks!