Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1286

Set default replication to 3

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None

      Description

      This is for tracking purposes. There is already a TODO in the code about changing the default replication factor to 3. The default is 1 and isn't recommended for production use.

      DEFINE_int32(default_num_replicas, 1, // TODO switch to 3 and fix SelectReplicas()
                   "Default number of replicas for tables that do have the num_replicas set.");
      

      https://github.com/cloudera/kudu/blob/master/src/kudu/master/catalog_manager.cc#L105

         * Sets the number of replicas that each tablet will have. If not specified, it defaults to 1
         * replica which isn't safe for production usage.
      

      https://github.com/cloudera/kudu/blob/master/java/kudu-client/src/main/java/org/kududb/client/CreateTableOptions.java#L112

      There may be other places that need updates.

        Attachments

          Activity

            People

            • Assignee:
              jdcryans Jean-Daniel Cryans
              Reporter:
              caseyching Casey Ching
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: