1. 07 2月, 2018 1 次提交
    • S
      gpstart: fix OOM issue · a993ef03
      Shoaib Lari 提交于
      gpstart did a cluster-wide check of heap_checksum settings and refused
      to start the cluster if this setting was inconsistent. This meant a
      round of ssh'ing across the cluster which was causing OOM errors with
      large clusters.
      
      This commit moves the heap_checksum validation to gpsegstart.py, and
      changes the logic so that only those segments which have the same
      heap_checksum setting as master are started.
      
      Author: Jim Doty <jdoty@pivotal.io>
      Author: Nadeem Ghani <nghani@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      a993ef03
  2. 30 1月, 2018 2 次提交
    • S
      Address PR comments: · 73763d6c
      Shoaib Lari 提交于
      - Change gpdeletsystem to delete tablespaces before datadir
      - Refactor SegmentStart.noWait to pg_ctrl_wait
      - Create PgBaseBackup class
      - Revert the change to default Mirror status
      - Assorted typos and bugfixes
      
      Author: Shoaib Lari <slari@pivotal.io>
      Author: Jim Doty <jdoty@pivotal.io>
      Author: Nadeem Ghani <nghani@pivotal.io>
      73763d6c
    • S
      gpexpand: Make it work with segwalrep. · 4534d171
      Shoaib Lari 提交于
      The gpexpand utility and associated code are modified to work with the WALREP
      code.  Previously, gpexpand only worked with the primaries and relied on Filerep
      to populate the mirrors. We are changing gpexpand such that it initializes the
      mirrors using pg_basebackup and set them up for WAL replication.
      
      Also, since the WALREP branch removed Filespaces, so we have also done the same
      and replaced references to Filespaces by the Data Directory of the segments.
      
      Author: Marbin Tan <mtan@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      Author: Nadeem Ghani <nghani@pivotal.io>
      4534d171
  3. 13 1月, 2018 9 次提交
  4. 09 1月, 2018 2 次提交
    • S
      gppylib: refactor SegmentPair to not support multiple mirrors · a19f7327
      Shoaib Lari 提交于
      Long ago, we thought we might need to support multiple mirrors. But we
      don't, and don't forsee it coming soon. Simplify the code to only ever
      have one mirror, but still allow for the possibility of no mirrors
      
      Author: Shoaib Lari <slari@pivotal.io>
      Author: C.J. Jameson <cjameson@pivotal.io>
      a19f7327
    • M
      gppylib: Rename gpArray variables and classes · bbc47080
      Marbin Tan 提交于
      The gpArray use of GpDB and Segment classes was confusing. This change renames
      GpDB to Segment and Segment to SegmentPair to clarify usage. Its a big diff, but
      a simple, repeating change.
      
      Author: Shoaib Lari <slari@pivotal.io>
      Author: Marbin Tan <mtan@pivotal.io>
      Author: C.J. Jameson <cjameson@pivotal.io>
      bbc47080
  5. 06 12月, 2017 1 次提交
  6. 14 11月, 2017 1 次提交
  7. 01 9月, 2017 1 次提交
    • S
      unix.RemoveDirectories: optimize and isolate cases · 872c02b3
      Shoaib Lari 提交于
      Previously, RemoveDirectories and RemoveFiles used the unix command
      "rm -rf", but this is inefficient for huge numbers of files.
      Also, these functions accepted any globbed path.
      
      Instead, use "rsync" to optimize deletion of files in a directory.
      On a DCA using 1 million files, this increased speed by about 3x.
      
      Also, this commit breaks up the different use-cases of deletion into
      separate methods, adding methods RemoveDirectoryContents() and RemoveFile()
      and RemoveGlob() to help isolate the assumptions of each case and
      optimize for them.
      Signed-off-by: NLarry Hamel <lhamel@pivotal.io>
      Signed-off-by: NShoaib Lari <slari@pivotal.io>
      872c02b3
  8. 30 8月, 2017 4 次提交
  9. 02 6月, 2017 1 次提交
  10. 04 5月, 2017 3 次提交
  11. 08 2月, 2017 2 次提交
  12. 23 8月, 2016 1 次提交
    • D
      Remove deprecated functionality and leftovers from removed utils · f8488849
      Daniel Gustafsson 提交于
      This removes all utilities which are known to be deprecated from
      gpMgmt and it also clears out any command line switches marked as
      deprecated along with code marked deprecated. It also removes the
      leftovers from previously removed utilities such as gpsuspend and
      gpcheck_hostdump etc and fixes mentions of renamed utilities.
      
      There should be no functional change from this commit as the only
      removed utils have been marked deprecated for some time.
      f8488849
  13. 16 8月, 2016 1 次提交
    • Y
      fix gpexpand Worker-thread hang problem (#895) · 565d69f9
      yezhiweicmss 提交于
      * fix gpexpand Worker-thread hang problem
      When using python 2.7, gpexpand will hang when the command "gpexpand -D gpadmin" is done. sys.exit calls thread.join() which waits for each thread to exit; The sub-thread Worker will still try getting from the WorkerPool Queue. 
      
      however, when using python 2.6.2, it's OK. Maybe the Python threading module changed somehow.
      
      
      565d69f9
  14. 12 8月, 2016 1 次提交
    • V
      Fix gpexpand: let it disconnect from the database (#897) · 51a46a68
      volkovandr 提交于
      * Changes in gpexpand:
      - Explicitly close the connection to the database before trying to stop
        it. Otherwise the database wouldn't stop due to active connection and
        the script will fail.
      - Close the connection to the database before leaving the script.
        Otherwise it will not return to the command line
      51a46a68
  15. 28 10月, 2015 1 次提交