Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
fix #73: add Go 1.10; fix #72: add postgres config; update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Feb 19, 2018
1 parent e281d78 commit 5c2ff5c
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Expand Up @@ -38,7 +38,7 @@ build:
- linux
- windows
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
main: .
main: .

checksum: { name_template: checksums.txt }

Expand Down
14 changes: 10 additions & 4 deletions .travis.yml
@@ -1,8 +1,10 @@
language: go

go:
- 1.9.x
- master
- 1.x
- 1.9.x
- 1.10.x

matrix:
allow_failures:
Expand All @@ -12,11 +14,14 @@ matrix:
sudo: false

before_install:
- wget -q -O dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
- export DEP_VERSION=0.4.1
- export GO_TEST_COVERAGE_FILENAME='coverage.out'

- wget -q -O dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64
- chmod +x dep && mv dep "${GOPATH}"/bin
- make tools
- go get github.com/mattn/goveralls
- export GO_TEST_COVERAGE_FILENAME='coverage.out'

- make tools

install:
- make deps generate
Expand All @@ -27,6 +32,7 @@ script:
after_success:
- goveralls -service=travis-ci -coverprofile="${GO_TEST_COVERAGE_FILENAME}"
- echo $TRAVIS_GO_VERSION ":" $TRAVIS_TAG
# TODO wait https://github.com/travis-ci/gimme/pull/130
- if [[ $TRAVIS_GO_VERSION == 1.9* ]] && [ -n "$TRAVIS_TAG" ]; then curl -sL https://git.io/goreleaser | bash; fi

notifications:
Expand Down
72 changes: 52 additions & 20 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -116,5 +116,5 @@ $ egg bitbucket.org/kamilsk/form-api
- [ ] v4: API v2
- [ ] v5: Extensibility
- [ ] FormA, SaaS
- tested on Go 1.9
- tested on Go 1.9 and 1.10
- made with ❤️ by [OctoLab](https://www.octolab.org/)
53 changes: 53 additions & 0 deletions env/etc/postgresql.conf
@@ -0,0 +1,53 @@
# Generated by http://pgconfigurator.cybertec.at

# Connectivity
max_connections = 100
superuser_reserved_connections = 3

# Loading libraries and preventing spinlock contentions
shared_preload_libraries = 'pg_stat_statements'
huge_pages = off

# Memory Settings
shared_buffers = '256 MB'
work_mem = '32 MB'
maintenance_work_mem = '320 MB'

effective_cache_size = '1 GB'
effective_io_concurrency = 100

# Background writer
bgwriter_delay = 200ms
bgwriter_lru_maxpages = 100
bgwriter_lru_multiplier = 2.0
bgwriter_flush_after = 0

# Replication
wal_level = replica
max_wal_senders = 10
synchronous_commit = on
wal_keep_segments = 130

# WAL writing
wal_compression = on
wal_buffers = -1
wal_writer_delay = 200ms
wal_writer_flush_after = 1MB

# Checkpointing:
checkpoint_timeout = '15 min'
max_wal_size = '1024 MB'
min_wal_size = '512 MB'
checkpoint_completion_target = 0.9

# Parallel queries:
max_worker_processes = 1
max_parallel_workers_per_gather = 0
max_parallel_workers = 1

# General notes:
# We recommend not to use read-only replicas for scaling
# Note that not all settings are automatically tuned.
# Consider contacting experts at
# https://www.cybertec-postgresql.com
# for more professional expertise.

0 comments on commit 5c2ff5c

Please sign in to comment.