Commit Graph

2464 Commits

Author SHA1 Message Date
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
Hector Sanjuan
b32e12ab25
Merge pull request #677 from ipfs/0.9.0
Release 0.9.0
2019-02-18 10:40:28 +00:00
Adrian Lanzafame
bccccccbdc
gx publish 0.9.0
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-18 20:31:10 +10:00
Adrian Lanzafame
6509dfff56
Release 0.9.0
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-18 20:31:07 +10:00
Adrian Lanzafame
d2c002319c
Merge pull request #664 from ipfs/0.9.0
v0.9.0 changelog
2019-02-18 20:21:56 +10:00
Hector Sanjuan
90d79f28ff Reference a couple other issues in changelog
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-18 10:04:42 +00:00
Adrian Lanzafame
40b60d3e6c
Add Go API changes and fix date
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-18 18:13:38 +10:00
Hector Sanjuan
dcd8bb85d1
Merge pull request #676 from ipfs/fix/cancelled-context-repo-stat
Fix context cancelled too early.
2019-02-17 20:58:37 +00:00
Hector Sanjuan
72d41790bd Ipfshttp: Fix: context tracing for sendInformerMetrics
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-16 00:11:07 +00:00
Hector Sanjuan
f22d01976d Fix context cancelled too early.
Every 10th pin the ipfs connector calls repo stat.

Because the call is async, the context was cancelled immediately and failed.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-15 18:45:04 +00: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
10d6a37304 Update deps: fix the things that need fixing
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-15 12:40:53 +00:00
Hector Sanjuan
d4a4b5526d Dependency alignment for libp2p-6.0.33, dag libraries and others
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-15 12:09:05 +00: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
Adrian Lanzafame
fe5e30d4d9
v0.9.0 changelog
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2019-02-08 11:48:03 +10: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