# Consistency level

**URL:** <https://community.influxdata.com/t/consistency-level/1132>\
**Category:** Systems\
**Tags:** influxdb\
**Created:** [May 31, 2017, 5:49am UTC](https://community.influxdata.com/t/consistency-level/1132 "2017-05-31T05:49:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)\
**Post date:** [May 31, 2017, 5:49am UTC](https://community.influxdata.com/t/consistency-level/1132/1 "2017-05-31T05:49:16Z")

</div>

Hi every one,

1-What does this command do?  
-consistency 'any|one|-consistency ‘any|one|quorum|all’all’

I read about compaction level but as far as know it is automatically ! am i correct?

what is different between "any"and “all”?  
and how about quorum?

2-why when i use “settings” command , username value is blank?

Setting Value

* * *

Host localhost:8086  
Username  
Database  
RetentionPolicy  
Pretty false  
Format column  
Write Consistency all

Thanks,

---

<div class="post-metadata">

**Author:** ![jackzampolin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jackzampolin/32/5_2.png) [@jackzampolin](https://community.influxdata.com/u/jackzampolin)\
**Post date:** [May 31, 2017, 4:00pm UTC](https://community.influxdata.com/t/consistency-level/1132/2 "2017-05-31T16:00:55Z")

</div>

@Indeed_1

1. That setting is specifically for clustered setups and has no meaning for a single node deployment ([DOCS](https://docs.influxdata.com/influxdb/v1.2/tools/api/#query-string-parameters-1)).

2. To make the `Username` section be non blank you need to start the `influx` cli with the `-username` and `-password` options. The `Database` section will fill in if you start the cli with the `-database` directive or you `use mydb`.

---

<div class="post-metadata">

**Author:** ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)\
**Post date:** [June 3, 2017, 7:12am UTC](https://community.influxdata.com/t/consistency-level/1132/3 "2017-06-03T07:12:18Z")

</div>

@jackzampolin Thank you Jack 😉
