Commit Graph

27 Commits

Author SHA1 Message Date
Sebastian Cavedale eb3a0a10dc
Pod's resources requirements improvements (production) (#1347)
* Push changes to analytics pod's resources (production-testnet)
* Push changes to api pod's resources (production-testnet)
* Push changes to blockchain-watcher pod's resources (production-testnet)
* Push changes to contract-watcher pod's resources (production-testnet)
* Push changes to fly pod's resources (production-testnet)
* Push changes to notional pod's resources (production-testnet)
* Push changes to parser pod's resources (production-testnet)
* Push changes to pipeline pod's resources (production-testnet)
* Push changes to spy pod's resources (production-testnet)
* Push changes to tx-tracker pod's resources (production-testnet)

* Push changes to analytics pod's resources (production-mainnet)
* Push changes to api pod's resources (production-mainnet)
* Push changes to blockchain-watcher pod's resources (production-mainnet)
* Push changes to contract-watcher pod's resources (production-mainnet)
* Push changes to fly pod's resources (production-mainnet)
* Push changes to notional pod's resources (production-mainnet)
* Push changes to parser pod's resources (production-mainnet)
* Push changes to pipeline pod's resources (production-mainnet)
* Push changes to spy pod's resources (production-mainnet)
* Push changes to tx-tracker pod's resources (production-mainnet)
2024-04-24 11:38:38 -03:00
Sebastian Cavedale 0cd38590ce
Manifest and pod's resources requirements improvements (staging) (#1332)
* Push changes to analytics manifest and pod's resources

* Push changes to api manifest and pod's resources/scaler

* Push changes to contract-watcher manifest and pod's resources

* Push changes to fly manifest and pod's resources/scaler

* Push changes to notional manifest and pod's resources

* Push changes to parser manifest and pod's resources/scaler

* Push changes to pipeline manifest and pod's resources

* Push changes to spy manifest and pod's resources

* Push changes to tx-tracker manifest and pod's resources/scaler

* Push changes to blockchain-watcher manifest and pod's resources

* Added a new serviceAccount named 'blockchain-watcher'
2024-04-23 14:40:56 -03:00
ftocal f635f1d785
Increase instances for api in production-mainnet (#1265)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-03-29 15:31:41 -03:00
ftocal e98d98fda5
Increase memory in api testnet (#1241)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-03-22 14:49:59 -03:00
Sebastian Cavedale 605b883b1e
Changed api container settings in order to reduce the startup time (#1199)
* Changed api-deployment container settings in order to reduce the startup time

* Set staging-mainnet CPU/MEMORY requests/limits

* Upgrade production-mainnet CPU requests/limits
2024-03-13 14:54:23 -03:00
ftocal 5cc4dca96e
Increase rate limit for API (#1210) 2024-03-11 18:03:51 -03:00
Mariano 8d6165153a
add protocols to prod-mainnet.env (#1179) 2024-03-05 11:43:40 -03:00
Mariano 6bbfa7bf23
Add cache to protocols stats endpoints (/protocols/stats) (#1149)
* add cache to protocols stats endpoint

 add mock for cache

add unit test case for cache miss

 change from to current

* add configs

* add missing config for api-service.yaml

* add cache ttl for staging-mainnet
2024-03-04 15:55:53 -03:00
walker-16 4760c820c3
808 enhance operationsaddress to provide information for all address formats (#1145)
* Add index in globalTransactions by originTx.attribute.value.originAddress

* Add in the operation by address endpoint support to wormchain chains
2024-02-23 10:32:26 -03:00
Mariano 175abbb11a
[Issue:1052] Create job for fetching contributor stats and storing in db (#1144)
* [Issue:1052] Create job for fetching contributor stats and storing in db

revert unnecessary changes on api/handlers/stats

revert changes in go.mod and go.sum

revert change in go.work

add schedule for contributors stats job

change response parsing order

changes due to draft-pr review

 move on with contributors activity implementation

change to every hour

fix typo

 change contributor stats implementation to do a single write transaction

 normalize to UTC contributors activity timestamp

 add cronjob schedule for contributors

[Issue:1052][Part 2] Create endpoint to expose contributors stats and activities  (#1123)

* add endpoint for retrieving stats and activity

* remove model.go file and move types to service file

* add unit tests to contributors service

* integrate new contributors controller

* fix more stuff

 fix unit-tests

 changes due to pr review

 fix query

 fix unit-tests

fix total_value_secure

 move constantes to common pkg

remove extra changes

rename contributor to protocols

 finish renames

Changes for deployment

adjust different response types from different protocols contributors

 fix controller test

 big refactor in activty job and stats job since protocols are returning different formats

api responding fine

 remove uneccessary generics

 target dbconsts

 fix

Delete deploy/common/env/staging-mainnet.env

undo unwanted changes

 readd staging-mainnet.env

 fix unit-tests

add missing protocols_stats/activity_version

 remove property protocols_json

fix JOB_ID env var in protocols-activity.yaml

fix typos in env vars configs

 change tu numbers

 changes due to own review

 add new line

* add swagger docs
2024-02-22 14:58:45 -03:00
walker-16 87fd9d15ef
Create an api endpoint to call vaa payload parser component (#596)
* move vaa payload parser to common

* Add proxy endpoint to vaa payload parser

* Modify api deployment

* fix docs

* Fix swagger documentation
2023-08-10 11:02:14 -03:00
ftocal 0d2b5bdfd7
Add index to parsedVaa collection (#616)
* Improve log to get latency for all endpoints except ready and health

Co-authored-by: walker-16 <agpazos85@gmail.com>

* Add index to parsedVaa collection

Co-authored-by: walker-16 <agpazos85@gmail.com>

---------

Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-08-09 11:55:51 -03:00
ftocal 008f7aab88
Add production testnet deployment (#593)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-31 10:17:30 -03:00
ftocal 1440fa3741
Minor changes for production deployment (#541)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-14 14:20:42 -03:00
ftocal 9198c129e1
Add environment to promethes metrics for api (#507) 2023-07-05 16:15:29 -03:00
gipsh ba3d1d9e61
Vanilla rate limiter (#414)
* update doc

* api def update

* first commit

* support redis, allow for private ips

* add deployment vars

---------

Co-authored-by: Hernan Gips <hernangips@OnoSendai.local>
2023-06-15 23:22:47 -03:00
ftocal eb414c9f65
fix api deployment (#308) 2023-05-11 12:16:12 -03:00
ftocal abf4a690da
Fix: adjust k8s resources limit and request (#234) 2023-04-13 16:35:27 -03:00
ftocal b1583d5e21
add ingress for api in staging and test environments (#169) 2023-02-28 15:44:45 -03:00
ftocal a926f3c409
Add https to api in test (#155) 2023-02-13 10:17:19 -03:00
walker-16 7506ff0bf5
Add pprof all components (#134)
* Fix Config pprof in fly

* Refactor pprof explorer parser component

* Add pprof to spy component

* Add pprof to api [api/v1, /v1]
2023-02-03 15:18:44 -03:00
walker-16 6c54c8b8a1
Improves to deployment file in testing/staging (#130)
* Fix spy service deploy config

* Reduce parser pod memory

* Reduce fly replicas and change memory size

* Resize cpu & memory api [testnet]

* Fix replicas and size cpu memory componentes testnet

* delete image-name spy staging

Co-authored-by: ftocal <fert1335@gmail.com>

---------

Co-authored-by: ftocal <fert1335@gmail.com>
2023-02-02 17:31:41 -03:00
walker-16 ab0c42ed87
Update deployment config (#128) 2023-02-02 16:01:05 -03:00
walker-16 1c7e58a27a
Handle guardianSet by p2p enviroment in fly/api (#112) 2023-01-31 11:38:17 -03:00
walker-16 fcc6e4e5e4
Fix api deployment [health/ready] (#62) 2023-01-18 15:31:04 -03:00
walker-16 7255b214ca
18 fly api cache most recent data for most frequent queries (#51)
* Add use of sequence cache in API

* Add sequence cache in fly

* Deploy for API

* Improve use cache in API

* Remove sequence cache in fly for pythnet

Co-authored-by: Fernando Torres <fert1335@gmail.com>
2023-01-05 16:40:24 -03:00
ftocal af94eac721
Add k8s deployment (#39)
creation of manifests to deploy in k8s
2022-12-14 17:07:55 -03:00