new technology, openstack, programming, python

Openstack swift: EADDRNOTAVAIL error

Problem swift-bench keeps EADDRNOTAVAIL error with a highly concurrency setting and multiple swift-bench clients. Setup Ubuntu 13, Swift single machine installation (refer SAIO), swift-client runs local with no-proxy mode. Solution EADDRNOTAVAIL stands for either unavailability of ephemeral ports and a known kernel bug. Check your range of ports: $cat /proc/sys/net/ipv4/ip_local_port_range swift-bench in no-proxy mode uses […]

Read more

memory_profiler: NameError: name ‘profile’ is not defined

I was experimenting with Python’s memory_profiler module and suddenly started getting following error: $ python -m memory_profiler Traceback (most recent call last):  File “/usr/lib/python2.7/”, line 162, in _run_module_as_main    “__main__”, fname, loader, pkg_name)  File “/usr/lib/python2.7/”, line 72, in _run_code    exec code in run_globals  File “/usr/local/lib/python2.7/dist-packages/”, line 14, in <module>    import subprocess  File “/usr/lib/python2.7/”, line 432, […]

Read more
design, nosql

Mongo DB: Good to know things

Mongo DB is a No-SQL, free, open-source solution that is highly scalable, highly available and high performance solution. Engine is coded in C++ Works in a client-server model Major components: mongod: The storage server mongos: The sharding server config server(s): Stores metadata that accomplish sharding Is actually a mongod process Mongo provides write operations durability […]

Read more