1. 29 6月, 2017 11 次提交
    • D
      Fix incorrect struct member in backport · 51bd8009
      Daniel Gustafsson 提交于
      The backport of the data checksum catalog changes backported the
      relevant GUC from a version which has struct config_bool defined
      differently than GPDB. The reason an extra NULL in the config_bool
      array initialization wasn't causing a compilation failure is that
      there is an extra bool member at the end which is only set during
      runtime, reset_val. The extra NULL was "overflowing" into this
      member and thus only raised a warning under -Wint-conversion:
      
          guc.c:1180:15: warning: incompatible pointer to integer
      	               conversion initializing 'bool' (aka 'char')
      				   with an expression of type 'void *’
      
      Fix by removing the superflous NULL. Since it was setting reset_val
      to NULL (and for a GUC which is yet to "do something") there should
      be no effects by this.
      51bd8009
    • N
      Implement resgroup memory limit (#2669) · b5e1fb0a
      Ning Yu 提交于
      Implement resgroup memory limit.
      
      In a resgroup we divide the memory into several slots, the number
      depends on the concurrency setting in the resgroup. Each slot has a
      reserved quota of memory, all the slots also share some shared memory
      which can be acquired preemptively.
      
      Some GUCs and resgroup options are defined to adjust the exact allocation
      policy:
      
      resgroup options:
      - memory_shared_quota
      - memory_spill_ratio
      
      GUCs:
      - gp_resource_group_memory_limit
      Signed-off-by: NNing Yu <nyu@pivotal.io>
      b5e1fb0a
    • A
      Added cdbvars.h to be installed. (#2710) · 53e82866
      Alex Diachenko 提交于
      Added cdbvars.h to be installed so extensions can import it.
      53e82866
    • M
      Revert "gpperfmon: refactor to make 'skew' calculation more readable" · e020cc1e
      Marbin Tan 提交于
      This code is not correctly recording the data. There seems to be a bug
      with how we're modifying the values. Most likely, that we're trying to
      change the address instead of the actual value it's pointing to.
      
      We will need to fully run the test this part of the code again and create a new PR.
      
      This reverts commit 411d3c82.
      e020cc1e
    • J
      Add tool to assist in managing WAL replication mirror segments · 43492c38
      Jimmy Yih 提交于
      This gpsegwalrep tool is meant for assisting in segment WAL
      replication development which is why it is not placed in
      gpMgmt/bin/. The tool is used to initialize, start, stop, and destroy
      WAL replication mirror segments. It can also be said that this tool is
      a rough example of what a segment walrep tool would look like in
      Greenplum 6.x.
      43492c38
    • J
      Make gpdemo able to bring up a mirrorless cluster · 89804845
      Jimmy Yih 提交于
      There are times where a developer may want to bring up a Greenplum
      demo cluster without mirrors. This change should make this possible
      now.
      
      Example:
      WITH_MIRRORS=false make create-demo-cluster
      89804845
    • D
    • M
      gpperfmon: address compiler warning · 153867ad
      Marbin Tan 提交于
      compiler is complaining about prototype not being there, even if it's
      already there. It seems that adding a void into the prototype silences this
      compiler warning.
      Signed-off-by: NTushar Dadlani <tdadlani@pivotal.io>
      153867ad
    • T
      gpperfmon: refactor quantum name to be more explicit · 607c594a
      Tushar Dadlani 提交于
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      607c594a
    • M
      gpperfmon: refactor to make 'skew' calculation more readable · 411d3c82
      Marbin Tan 提交于
      Coefficient of Variation Calculation
      
      Coefficient of variation is the standard deviation divided by the mean.
      
      We're using the term skew very loosely in our description, as we're
      actually calculating coefficient of variation.
      
      With coefficient of variation, we can tell how dispersed the data points are across
      the segments. The higher the coefficient of variation, the more
      non-uniform the distribution of the data in cluster.
      
      Coefficient of variation is unitless so it could be used for comparing
      different clusters and how they are performing relative to each other.
      
      CPU Skew calculation:
      mean(cpu) = sum(per segment cpu cycle) / sum(segments)
      variance(cpu) = sqrt( sum(((cpu(segment) - mean(cpu))^2) ... ) / sum(segments) )
      std_dev(cpu) = sqrt(variance(cpu))
      skew(cpu) = coeffecient of variation = std_dev(cpu)/mean(cpu)
      
      Row out Skew calculation:
      mean(row) = sum(per segment row) / sum(segments)
      variance(row) = sqrt( sum(((row(segment) - mean(row))^2) ... ) / sum(segments) )
      std_dev(row) = sqrt(variance(row))
      skew(row) = coeffecient of variation = std_dev(row)/mean(row)
      Signed-off-by: NTushar Dadlani <tdadlani@pivotal.io>
      411d3c82
    • M
      behave: decouple substeps within a gpperfmon step · ea5b0504
      Marbin Tan 提交于
      The behave test is intermittently failing because the substep is trying
      to install gpperfmon eventhough gpperfmon is already installed. Trying
      to figure out which part of failing the correct value is hard with the
      current setup.
      Decouple the checks to determine which part is actually failing.
      Signed-off-by: NTushar Dadlani <tdadlani@pivotal.io>
      ea5b0504
  2. 28 6月, 2017 14 次提交
  3. 27 6月, 2017 9 次提交
  4. 24 6月, 2017 6 次提交