Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
6.6.0
-
1
Description
This is related to the Slack https://couchbase.slack.com/archives/CFP5GAE9L/p1604067923124700
Have the UI better reflect the relationship between the replicas and durability so the user is clear, when enabling or choosing replicas, which durability options are valid and reasonable to select.
This could probably be multiple issues... if you want that, let me know.
For example,
- if replicas is 3, durability won't work, so have the UI reflect that by disabling the durability option
- if replicas is not enabled, then don't show all the options under durability because that implies to the user there is some enhanced function available. When really, it's just indicating you're writing to 1 and 1 is a majority, which, while technically is true, may be misrepresenting to the user, especially a newbie or someone that doesn't create a lot of buckets, there is more going on.
- move the replicas and durability closer together on the UI to better reflect their relationship to one another. Now, they are separated by other options.
-------------
David Elliott
According to the docs, durability is related to replicas.In the Bucket Settings UI, when Replicas is not checked (is disabled), the Durability Level can be set in the UI for the bucket. If I'm reading the docs correctly, when replicas are disabled, then setting a durability wouldn't work.Should the option to choose a Durability Level be disabled when the Replicas are disabled in the UI.?Or, am I understanding Durability incorrectly?https://docs.couchbase.com/java-sdk/current/concept-docs/durability-replication-failure-considerations.html#durable-writes
10:31 AM
Perry Krug
@David Elliott durability can be for replicas and/or disk...so even with replicas disabled, it would still be reasonable to have a durability setting for persistence. I see the picture you have says "Persist to majority" which should be okay even without replicas. What I don't know is whether the UI is smart enough to not provide an option for replica durability if replicas are disabled...that seems like quite an edge case but not impossible
10:37 AM
David Elliott
@Perry I must not understand durability then. I'll look at it more. That arrow was meant to point to the entire blue box/durability level/drop down, not just that selected item – if I don't understand durability then the question/arrow is moot I'll look at the docs more. Thanks!
10:41 AM
Perry Krug
ahh okay, well then yes most of those options wouldn't apply without replicas...but "persist to majority" I think still would because, in theory, it would be persisting to active which is the majority (1 of 1). Thinking about it further though, I think we may need to double-check that the actual implementation actually does work that way and that "persist to majority" with no replicas does what I think it should... @matt ?
10:41 AM
Matthew Ingenthron was added to #ui by Perry Krug.
5:27 PM
Shivani Gupta
Even if you don't have any replicas, all options are valid settings for Durability. e.g. Majority would be just 1/1. persistToMajority would again be 1/1. So it is fine to use these options though just Majority would not do anything extra if you don't have replicas.
Today
9:19 AM
David Elliott
@Shivani Gupta I agree, technically, yes, you are right. I was think more of what is the perception a brand new user/infrequent creator of buckets would have with the options available.My thought, fwiw, as a relatively new user to Couchbase, is that I had to think a lot about what those options meant and if they were even related. Visually, they are separated, yet seem intricately linked. My first thought was having multiple durability options, implies I'm getting an increasing level of protection, that I'm not, in the situation where replicas are not enabled.Just my thoughts. Thanks for taking it in.
3:45 PM
Shivani Gupta
Fair point @David Elliott. Why don't you go ahead and file a UI improvement and assign to me? There are possibly things we can do such as: (a) Move the Durability setting closer to the Replica selection since as you point out they are related. (b) Improve/enhance the information text we show with the Durability settings. Of course any other ideas from you are welcome as well.