I have memcached running on mem_host1. and I can see key exist
but logstash is not producing field called site. project field is also exist on output of logstash
here is memcached result from memcached server. I preloaded key:value using python.
# cat memcached_get.py
#!/usr/bin/python3
import memcache
mc_client = memcache.Client(['10.29.249.111:11211'])
# Retrieve the value for the key
value = mc_client.get('3dsymra')
# Print the value
print(value)
excellent this is final version. I will do large scale testing now.
python3 to load in to memcache
with open ('/home/sachin/project_center.csv','rb') as f:
for line in f:
# use decod as it is string,
# then split to key-value pair and insert in to memcached
line = line.decode()
fields = line.split(',')
(project,site) = fields
project = "proj_site_"+project
my_dict[project] = site
mc_client.set_multi(my_dict)
You are not wrong If it cannot get a connection to the memcached server then the plugin's register function will raise a RuntimeError, and that prevents the pipeline starting.
If the pipeline loses the connection it will keep trying to reconnect and just tag the failure on the event if it cannot. I would expect the reconnect attempts to significantly reduce throughput.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.