# Acessing \`write-q\` using python-client

**URL:** <https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434>\
**Category:** Operations\
**Tags:** query\
**Created:** [May 11, 2022, 2:30am UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434 "2022-05-11T02:30:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan190](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@Karan190](https://discuss.aerospike.com/u/Karan190)\
**Post date:** [May 11, 2022, 2:30am UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/1 "2022-05-11T02:30:28Z")

</div>

I am trying to monitor the **write-q** using python client. For this particular task i am using **asinfo** which is not giving me the infoemation regarding that. what may be the possible options using **python client.**

---

<div class="post-metadata">

**Author:** ![aanderson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/aanderson/32/2064_2.png) [@aanderson](https://discuss.aerospike.com/u/aanderson)\
**Post date:** [May 11, 2022, 5:03pm UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/2 "2022-05-11T17:03:55Z")

</div>

Hi @Karan190 welcome to the community!

You can use the [`info_all`](https://aerospike-python-client.readthedocs.io/en/latest/client.html#aerospike.info_all) operation with the command `namespace/<namespace-name>` and then parse for the [`storage-engine.device[ix].write_q`](https://docs.aerospike.com/reference/metrics#storage-engine.device%5Bix%5D.write_q) statistic.

the code would look like this for a namespace named test:

```auto
import aerospike

config = {'hosts': [('127.0.0.1', 3000)] }
client = aerospike.client(config).connect()

response = client.info_all('namespace/test')
client.close()

```

---

<div class="post-metadata">

**Author:** ![Karan190](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@Karan190](https://discuss.aerospike.com/u/Karan190)\
**Post date:** [May 12, 2022, 6:21am UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/3 "2022-05-12T06:21:41Z")

</div>

Thank you. Now I have one more doubt, I have configured my cluster in community addition, now I want the **write\_q** have some value other than 0, so I am inserting **records** using python client and as it is not sending bulk data, the **write\_q** is **not increasing**. How I can send the records for the **testing**?

Increasing **number of records** not working for me. I have to test it for going beyond **max-write-cache**. could you help me how I can input bulk records to test my cluster @aanderson

---

<div class="post-metadata">

**Author:** ![aanderson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/aanderson/32/2064_2.png) [@aanderson](https://discuss.aerospike.com/u/aanderson)\
**Post date:** [May 12, 2022, 4:07pm UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/4 "2022-05-12T16:07:16Z")

</div>

The [asbench](https://docs.aerospike.com/tools/asbenchmark) benchmarking tool should be able to help you with that.

---

<div class="post-metadata">

**Author:** ![Karan190](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@Karan190](https://discuss.aerospike.com/u/Karan190)\
**Post date:** [May 13, 2022, 2:41am UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/5 "2022-05-13T02:41:58Z")

</div>

ok. trying to use that. thank you @aanderson

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [August 5, 2022, 2:42am UTC](https://discuss.aerospike.com/t/acessing-write-q-using-python-client/9434/6 "2022-08-05T02:42:47Z")

</div>

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.
