-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use contractkit in notification service #1118
Merged
Merged
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8cdc4c9
Switch to contractkit
annakaz f01efb0
Fix install
cmcewen 6811c07
Try publishing to get notification service to work
cmcewen 497e378
Missing dep
cmcewen d0a7529
Make a real symlink
cmcewen aa8febc
Merge branch 'master' into annakaz/to-contractkit
annakaz a736220
Update dappkit deps
cmcewen c006051
Merge branch 'annakaz/to-contractkit' of github.com:celo-org/celo-mon…
cmcewen eb85e9e
Only get contract addresses with contractkit
annakaz 3008be4
Update staging web3 provider
annakaz 0e7dea4
Pin utils version
cmcewen dce622a
Add reference to attestation service
cmcewen 9d57b00
Fix build
cmcewen 1f2178f
Merge branch 'master' into annakaz/to-contractkit
annakaz b4e03b5
Merge branch 'master' into annakaz/to-contractkit
annakaz fda7c09
New utils package config
cmcewen 815c9a1
Merge branch 'annakaz/to-contractkit' of github.com:celo-org/celo-mon…
cmcewen 753635d
Update integration web3 provider url
annakaz 8308ac1
Add test config
cmcewen 84f8d10
Remove empty string blockscout_api in jest setup:
annakaz 02e3e31
Update notification service code owner
annakaz 523eadd
Merge branch 'master' into annakaz/to-contractkit
annakaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
runtime: nodejs | ||
env: flex | ||
service: integration | ||
instance_class: B4 | ||
manual_scaling: | ||
instances: 1 | ||
runtime: nodejs8 | ||
service: integration | ||
instance_class: F4 | ||
automatic_scaling: | ||
min_instances: 1 | ||
max_instances: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this when I first created the service and found that automatic scaling would always eventually kill the service since it wasn't receiving any inbound network requests. Seems like app engine is kind of hard wired to run web servers and not well suited to other kinds of apps...
It's possible this issue has since been fixed but please test that before changing this.
Also worth it to double check that we have alerting for when the service goes down
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the version that I deployed has been running for a while - do you remember when it would get killed? https://console.cloud.google.com/appengine/instances?project=celo-org-mobile&instancesTablesize=20&versionId=20190926t191656
It also looks like we have an uptime check https://app.google.stackdriver.com/uptime/efe3d6cc3966ae961e398dd5b73d2094?project=celo-testnet
Does this seem okay to you then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use automatic scaling if min and max instances are both set to 1?