Commit Graph

1304 Commits

Author SHA1 Message Date
Robert Ignat
368f1de6bc Add ApplyEnvVars test to maptracker config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:50:17 +02:00
Robert Ignat
38886dae42 Add ApplyEnvVars test to pubsubmon config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:48:15 +02:00
Robert Ignat
40d1077af2 Add ApplyEnvVars test to monbasic config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:47:28 +02:00
Robert Ignat
be8c56f949 Add ApplyEnvVars test to ipfshttp config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:47:02 +02:00
Robert Ignat
e38ceab222 Add ApplyEnvVars test to numpin config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:46:15 +02:00
Robert Ignat
08580c3d5c Add ApplyEnvVars test to disk config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:45:42 +02:00
Robert Ignat
bac982c5aa Add ApplyEnvVars test to raft config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:43:54 +02:00
Robert Ignat
36ee0f84eb Add ApplyEnvVars test to ipfsproxy config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 17:40:51 +02:00
Robert Ignat
78ac49a2d5 Fix env config tests
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-18 13:36:51 +02:00
Robert Ignat
523e109ef1 Create LoadJSONFileAndEnv config method for convenience
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-15 19:32:48 +02:00
Robert Ignat
168cf76224 Change ApplyEnvVars strategy for all config components
Get jsonConfig from Config, apply env vars to it, load jsonConfig
back into Config.

License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-15 19:07:20 +02:00
Robert Ignat
47252f8e62 Merge remote-tracking branch 'upstream/master' into issue_656
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-15 16:45:32 +02:00
Hector Sanjuan
d49884bfd0
Merge pull request #671 from roignpar/rename_observations_config
Rename observations Config fields
2019-02-15 10:43:52 +00:00
Hector Sanjuan
73ba101900
Merge pull request #674 from ipfs/fix/pprof-urls
bring pprof urls in line with default
2019-02-15 10:34:33 +00:00
Adrian Lanzafame
c3f5a6002d
bring pprof urls in line with default
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-15 12:31:44 +10:00
Robert Ignat
bac23c0243 Rename observations Config fields
* StatsReportingInterval -> ReportingInterval
* TracingSamplingProb -> SamplingProb
* TracingServiceName -> ServiceName

License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-13 23:49:02 +02:00
Robert Ignat
aa5d545164 Implement ApplyEnvVars for ipfshttp Config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-13 23:13:28 +02:00
Robert Ignat
580020db54 Use separate envConfigKeys for metrics and tracing
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-13 23:10:13 +02:00
Robert Ignat
15ac8cd79b Use ParseDurations when applying json to cluster Config
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-12 16:24:06 +02:00
Adrian Lanzafame
b4f0eb3c95
gx publish 0.9.0-rc1
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-12 21:01:53 +10:00
Adrian Lanzafame
17ffcf2b1c
Release 0.9.0-rc1
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-12 21:01:50 +10:00
Robert Ignat
da58eae2c9 Add ipfsproxy NodeHTTPS config field to ToJSON
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-11 18:08:55 +02:00
Adrian Lanzafame
ecef9ea762
Merge pull request #649 from ipfs/remove/snaps
Fix #593: Remove snaps
2019-02-09 13:11:05 +10:00
Robert Ignat
21a539159f Remove json config overriding with env vars
in LoadJSON for restapi and cluster Config

License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-09 00:00:58 +02:00
Robert Ignat
032f02802f Implement ApplyEnvVars for all ComponentConfigs
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-08 23:57:16 +02:00
Robert Ignat
ed30ac1ab4 Add ApplyEnvVars() to ComponentConfig interface
* cluster and restapi configs can also get values from environment variables
* other config components don't read any values from the environment

License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-07 20:51:20 +02:00
Hector Sanjuan
fcea4f41cf
Merge pull request #662 from roignpar/patch-2
update build status link in README
2019-02-07 16:36:58 +00:00
roignpar
743ff9dcd8
update build status link in README
License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
2019-02-07 13:42:10 +02:00
Hector Sanjuan
4324889c79
Merge pull request #659 from ipfs/fix/update-json-config
Fix/update json config
2019-02-06 22:43:51 +00:00
Hector Sanjuan
789ab57c2c Fix #658: Improve test
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-06 22:41:29 +00:00
Adrian Lanzafame
9b1e7439a5
simplify config test
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-06 17:48:58 +10:00
Adrian Lanzafame
551f291689
add test for ToJSON
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-06 11:33:49 +10:00
Adrian Lanzafame
237ede5fce
fix pointer ref of updateJSONConfigs
jsonConfigs.getSection() returned a value when it needed to
return a pointer to the jsonSection fields inside the struct.

Even though the jsonSection type is a map, therefore on the heap,
returning it as a value (non-pointer) resulted in it being
disassociated with the jsonConfigs overarching struct.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-06 09:48:27 +10:00
Adrian Lanzafame
5a7ee1d310
Merge pull request #486 from ipfs/feat/expvar
Tracing and Metrics: Opencensus integration for IPFS Cluster
2019-02-05 08:53:41 +10:00
Adrian Lanzafame
3b3f786d68
add opencensus tracing and metrics
This commit adds support for OpenCensus tracing
and metrics collection. This required support for
context.Context propogation throughout the cluster
codebase, and in particular, the ipfscluster component
interfaces.

The tracing propogates across RPC and HTTP boundaries.
The current default tracing backend is Jaeger.

The metrics currently exports the metrics exposed by
the opencensus http plugin as well as the pprof metrics
to a prometheus endpoint for scraping.
The current default metrics backend is Prometheus.

Metrics are currently exposed by default due to low
overhead, can be turned off if desired, whereas tracing
is off by default as it has a much higher performance
overhead, though the extent of the performance hit can be
adjusted with smaller sampling rates.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-04 18:53:21 +10:00
Hector Sanjuan
6e43d272f7 Fix #593: Remove snaps
Snap builds have broken again. It seems the credentials have expired without
warning, even though they were not so old anyways. As promised,
next time snaps would break, they would be removed.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-18 10:23:22 +01:00
Hector Sanjuan
a244af9a13 Fix changelog date
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-16 15:00:10 +01:00
Hector Sanjuan
44f4ff2b24
gx publish 0.8.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-16 13:27:26 +01:00
Hector Sanjuan
c37beea1ae
Release 0.8.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-16 13:27:03 +01:00
Hector Sanjuan
0d4af5d927
Merge pull request #644 from ipfs/0.8.0/changelog
Changelog for 0.8.0 release
2019-01-16 11:37:02 +01:00
Hector Sanjuan
afe5acfdc9 Changelog for 0.8.0 release
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-16 11:35:29 +01:00
Hector Sanjuan
f7bc468765
gx publish 0.8.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-14 14:54:13 +01:00
Hector Sanjuan
19191cf13f
Release 0.8.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-14 14:53:30 +01:00
Hector Sanjuan
04cd9a57a2
Merge pull request #643 from ipfs/fix/sharness-jq-typo
sharness: Fix test typo causing an empty grep
2019-01-14 14:50:46 +01:00
Hector Sanjuan
d33b27435c
Merge pull request #642 from ipfs/fix/config-errors
config: Fix confusing errors
2019-01-14 14:38:21 +01:00
Hector Sanjuan
9685c08ee0 sharness: test should check agains cluster peer ID
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-14 13:01:18 +01:00
Kishan Sagathiya
6b4b1bcebb Update sharness/t0032-ctl-health.sh
Fix the pid extraction in test.

Co-Authored-By: hsanjuan <hsanjuan@users.noreply.github.com>

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-14 13:01:11 +01:00
Hector Sanjuan
b93aad117b
Merge pull request #638 from ipfs/fix/cors-and-headers
Fix #382 (again): A better strategy for handling proxy headers
2019-01-14 12:08:21 +01:00
Hector Sanjuan
935d9840b4
Merge pull request #641 from ipfs/tests/update-sharness-configs
Sharness: update configuration files used in sharness
2019-01-14 12:08:08 +01:00
Hector Sanjuan
b606c4b3f5
Merge pull request #637 from ipfs/feat/632-stream-channels-client
Fix #632: Add --no-stream to ipfs-cluster-ctl
2019-01-14 12:06:59 +01:00