Skip to content

Commit

Permalink
Merge branch 'release/0.18.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
KlaasH committed May 16, 2023
2 parents 4b3b231 + d05fab6 commit 403b8b2
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 26 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Upcoming release]

## [0.18.0] - 2023-05-16

- Strip backslash characters from OSM file
- Increase memory and resource allocations for analysis

## [0.17.0] - 2023-01-19

#### Added
Expand Down Expand Up @@ -192,7 +197,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [0.1.0] - 2017-04-21


[Upcoming release]: https://github.com/azavea/pfb-network-connectivity/compare/0.17.0...HEAD
[Upcoming release]: https://github.com/azavea/pfb-network-connectivity/compare/0.18.0...HEAD
[0.18.0]: https://github.com/azavea/pfb-network-connectivity/compare/0.17.0...0.18.0
[0.17.0]: https://github.com/azavea/pfb-network-connectivity/compare/0.16.1...0.17.0
[0.16.1]: https://github.com/azavea/pfb-network-connectivity/compare/0.16.0...0.16.1
[0.16.0]: https://github.com/azavea/pfb-network-connectivity/compare/0.15.1...0.16.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"containerProperties": {
"image": "{image}",
"vcpus": 8,
"memory": 30720,
"memory": 61000,
"command": [
"/pfb/scripts/entrypoint.sh"
],
Expand All @@ -26,19 +26,19 @@
"value": "2680"
}, {
"name": "PFB_MAINTENANCE_WORK_MEM",
"value": "4092MB"
"value": "8GB"
}, {
"name": "PFB_MAX_WAL_SIZE",
"value": "4096MB"
"value": "8GB"
}, {
"name": "PFB_SHARED_BUFFERS",
"value": "7168MB"
"value": "24GB"
}, {
"name": "PFB_TEMP_FILE_LIMIT",
"value": "26214400"
"value": "100GB"
}, {
"name": "PFB_WORK_MEM",
"value": "3072MB"
"value": "3GB"
}],
"mountPoints": [{
"sourceVolume": "pgdata",
Expand All @@ -52,6 +52,9 @@
"readonlyRootFilesystem": false,
"privileged": true,
"ulimits": [],
"user": ""
"user": "",
"linuxParameters": {
"sharedMemorySize": 4096
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"parameters": {},
"containerProperties": {
"image": "{image}",
"vcpus": 2,
"memory": 12288,
"vcpus": 8,
"memory": 61000,
"command": [
"/pfb/scripts/entrypoint.sh"
],
Expand All @@ -26,19 +26,19 @@
"value": "2680"
}, {
"name": "PFB_MAINTENANCE_WORK_MEM",
"value": "2048MB"
"value": "8GB"
}, {
"name": "PFB_MAX_WAL_SIZE",
"value": "4096MB"
"value": "8GB"
}, {
"name": "PFB_SHARED_BUFFERS",
"value": "3072MB"
"value": "24GB"
}, {
"name": "PFB_TEMP_FILE_LIMIT",
"value": "104857600"
"value": "100GB"
}, {
"name": "PFB_WORK_MEM",
"value": "1536MB"
"value": "3GB"
}],
"mountPoints": [{
"sourceVolume": "pgdata",
Expand All @@ -52,6 +52,9 @@
"readonlyRootFilesystem": false,
"privileged": true,
"ulimits": [],
"user": ""
"user": "",
"linuxParameters": {
"sharedMemorySize": 4096
}
}
}
2 changes: 1 addition & 1 deletion deployment/aws-batch/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
boto3==1.4.4
boto3==1.26.132
8 changes: 6 additions & 2 deletions scripts/infra
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
if [[ -n "${PFB_SETTINGS_BUCKET}" ]]; then
pushd "${TERRAFORM_DIR}"

aws s3 cp "s3://${PFB_SETTINGS_BUCKET}/terraform/terraform.tfvars" "${PFB_SETTINGS_BUCKET}.tfvars"

case "${1}" in
plan)
aws s3 cp "s3://${PFB_SETTINGS_BUCKET}/terraform/terraform.tfvars" "${PFB_SETTINGS_BUCKET}.tfvars"

update_batch_definitions

docker-compose run --rm \
Expand Down Expand Up @@ -112,6 +112,10 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
apply-mgmt)
docker-compose run --rm terraform apply "${PFB_SETTINGS_BUCKET}-mgmt.tfplan"
;;
update-tfvars)
aws s3 cp "${PFB_SETTINGS_BUCKET}.tfvars" \
"s3://${PFB_SETTINGS_BUCKET}/terraform/terraform.tfvars" --sse
;;
*)
echo "ERROR: I don't have support for that Terraform subcommand!"
exit 1
Expand Down
8 changes: 6 additions & 2 deletions src/analysis/import/import_osm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ OSM_TEMPDIR="${NB_TEMPDIR:-$(mktemp -d)}/import_osm"
mkdir -p "${OSM_TEMPDIR}"

update_status "IMPORTING" "Clipping provided OSM file"
OSM_DATA_FILE="${OSM_TEMPDIR}/converted.osm"
osmconvert "${1}" \
--drop-broken-refs \
-b="${BBOX}" \
-o="${OSM_TEMPDIR}/converted.osm"
OSM_DATA_FILE="${OSM_TEMPDIR}/converted.osm"
-o="${OSM_DATA_FILE}"
# If the OSM file contains "\" as a segment name, osm2pgrouting chokes on those segments and drops
# everything that happens to be in the same processing chunk. So strip them out.
sed 's/\\/backslash/' $OSM_DATA_FILE > "${OSM_DATA_FILE}-cleaned"
mv "${OSM_DATA_FILE}-cleaned" $OSM_DATA_FILE

# import the osm with highways
update_status "IMPORTING" "Importing OSM data"
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/scripts/setup_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ALTER SYSTEM SET maintenance_work_mem TO '${PFB_MAINTENANCE_WORK_MEM}';
ALTER SYSTEM SET max_wal_size TO '${PFB_MAX_WAL_SIZE}';
ALTER SYSTEM SET shared_buffers TO '${PFB_SHARED_BUFFERS}';
ALTER SYSTEM SET synchronous_commit TO ${PFB_SYNCHRONOUS_COMMIT};
ALTER SYSTEM SET temp_file_limit TO ${PFB_TEMP_FILE_LIMIT};
ALTER SYSTEM SET temp_file_limit TO '${PFB_TEMP_FILE_LIMIT}';
ALTER SYSTEM SET wal_buffers TO ${PFB_WAL_BUFFERS};
ALTER SYSTEM SET work_mem TO '${PFB_WORK_MEM}';
EOF
Expand Down
4 changes: 3 additions & 1 deletion src/angularjs/.bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"directory": "bower_components"
"directory": "bower_components",
"registry": "https://registry.bower.io",
"strict-ssl": false
}
3 changes: 3 additions & 0 deletions src/angularjs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM node:6.17-stretch
MAINTAINER Azavea

ENV ANGULAR_DIR /opt/pfb/angularjs
ENV NODE_OPTIONS --use-openssl-ca

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list

RUN apt-get update && apt-get install -y rsync \
&& rm -rf /var/lib/apt/lists/*
Expand Down
5 changes: 2 additions & 3 deletions src/tilegarden/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:12.19-stretch-slim
FROM node:12.19-buster-slim

ENV BASE_DIR /opt/pfb/tilegarden

# Install git for git dependencies
RUN apt-get update -y
RUN apt-get install git jq -y
RUN apt-get update -y && apt-get install -y git jq python2 && apt-get clean
RUN yarn global add carto

# Copy files needed for installing packages first
Expand Down

0 comments on commit 403b8b2

Please sign in to comment.