Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted aerospike.conf file on AWS instances #8

Open
jheyssel opened this issue Aug 28, 2022 · 0 comments
Open

Corrupted aerospike.conf file on AWS instances #8

jheyssel opened this issue Aug 28, 2022 · 0 comments

Comments

@jheyssel
Copy link

jheyssel commented Aug 28, 2022

I set up the aerospike-ansible project as directed in video presentation and documentation:

Host OS: Ubuntu 22.04
license: corporate

and ran the install command:

$ ansible-playbook aws-setup-plus-aerospike-install.yml --extra-vars="{'enterprise':true,'feature_key':'/home/jheyssel/Desktop/features.conf'}"

After discovering that the aerospike.service would not start -- systemctl status aerospike showed that asd had not started ... I found that

aerospike.conf in /etc/aerospike was corrupted on install. In specific the heartbeat stanza was corrupted -- the ip address was not inserted.

It appears that the cluster IP addresses were not yet known at the moment entries in the heartbeat section were written:

mesh-seed-address-port [ 3002 :: there should be an ip address for a cluster host where the "[" is ... many such corrupted entries were created as can be seen below ...

After manually fixing the entries, I was able to start asd and run asadm and other tools.

Aerospike database configuration file.

service {
user root
group root
pidfile /var/run/aerospike/asd.pid
proto-fd-max 15000
node-id c000000a
cluster-name aerospike_ansible_demo_cluster
}

logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
file /var/log/aerospike/udf.log {
context udf info
context aggr info
}
}

network {

service {
	address any
	
	port 3000
			
}

heartbeat {
	mode mesh

	port 3002
	mesh-seed-address-port [ 3002
	mesh-seed-address-port ] 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port + 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port [ 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port 1 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 2 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 6 3002
	mesh-seed-address-port 9 3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ] 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port + 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port [ 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port 1 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 1 3002
	mesh-seed-address-port 9 3002
	mesh-seed-address-port 2 3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ] 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port + 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port [ 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port 1 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 0 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 1 3002
	mesh-seed-address-port . 3002
	mesh-seed-address-port 2 3002
	mesh-seed-address-port 2 3002
	mesh-seed-address-port 5 3002
	mesh-seed-address-port ' 3002
	mesh-seed-address-port   3002
	mesh-seed-address-port ] 3002
			
	interval 150
	timeout 10
}

fabric {
	address any
	port 3001		
}

info {
	port 3003
}

}

namespace test {
replication-factor 2
memory-size 2962M
default-ttl 0d
nsup-period 600

rack-id 100000 
 

# To use file storage backing, comment out the line above and use the
# following lines instead.
storage-engine device {
	 
	device /dev/nvme1n1p1 
	device /dev/nvme1n1p2 
	device /dev/nvme1n1p3 
	device /dev/nvme1n1p4 
	data-in-memory false # Store data in memory in addition to file.
} 

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant