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
open System.Collections.Generic | |
/// A sampler is used to reduce the number of events, to not overwhelm the results. | |
/// In our case, we want to control costs too - we only have 1.5B honeycomb events | |
/// per month, and it's easy to use them very quickly in a loop | |
type Sampler(serviceName : string) = | |
inherit OpenTelemetry.Trace.Sampler() | |
let keep = SamplingResult(SamplingDecision.RecordAndSample, new List<KeyValuePair<string, object>> | |
{ |
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
# https://hub.docker.com/_/microsoft-dotnet-core | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build | |
WORKDIR /source | |
# copy csproj and restore as distinct layers | |
COPY *.csproj ./ | |
RUN dotnet restore | |
# copy everything else and build app | |
COPY . ./ |
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
/opt/couchbase/bin/mctimings -v -b bucket -u Administrator -P wep9B95dUDKaeQL | |
The following data is collected for "GET" | |
[ 0 - 9]us ( 26.83%) 249403 | ################## | |
[ 10 - 19]us ( 91.62%) 602167 | ############################################ | |
[ 20 - 29]us ( 99.23%) 70719 | ##### | |
[ 30 - 39]us ( 99.93%) 6560 | | |
[ 40 - 49]us ( 99.99%) 547 | | |
[ 50 - 59]us (100.00%) 59 | | |
[ 60 - 69]us (100.00%) 8 | | |
[ 70 - 79]us (100.00%) 4 | |
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
// * Summary * | |
BenchmarkDotNet=v0.11.1, OS=Windows 10.0.17134.285 (1803/April2018Update/Redstone4) | |
Intel Core i7-4870HQ CPU 2.50GHz (Max: 2.49GHz) (Haswell), 1 CPU, 4 logical and 4 physical cores | |
.NET Core SDK=2.1.401 | |
[Host] : .NET Core 2.1.3 (CoreCLR 4.6.26725.06, CoreFX 4.6.26725.05), 64bit RyuJIT | |
DefaultJob : .NET Core 2.1.3 (CoreCLR 4.6.26725.06, CoreFX 4.6.26725.05), 64bit RyuJIT | |
Method | Mean | Error | StdDev | Scaled | ScaledSD | |
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
using System; | |
using System.Threading; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace LockingBenchmarks | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
[ | |
{ | |
"role":"replication_target", | |
"bucket_name":"*", | |
"name":"Replication Target", | |
"desc":"XDC replication target for bucket" | |
}, | |
{ | |
"role":"query_external_access", | |
"name":"Query External Access", |
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
using System; | |
using System.Collections.Generic; | |
using Couchbase; | |
using Couchbase.Configuration.Client; | |
using Couchbase.Management; | |
namespace UserManagerUpsert_FullBucketAccess | |
{ | |
class Program | |
{ |
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
"profile": { | |
"phaseTimes": { | |
"authorize": "1.544104ms", | |
"fetch": "1.776843ms", | |
"instantiate": "777.209µs", | |
"parse": "840.796µs", | |
"plan": "53.121896ms", | |
"primaryScan": "6.741329ms", | |
"run": "10.244259ms" | |
}, |
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
[ | |
{ | |
"service":"kv", | |
"count":2, | |
"top":[ | |
{ | |
"s":"kv:get", | |
"i":"0x07690", | |
"c":"002c2b0d250e6fc5/002c2b0c723e11c5", | |
"l":"192.168.1.101:16742", |
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
[ | |
{ | |
"service":"kv", | |
"count":9, | |
"top":[ | |
{ | |
"operaion_name":"get", | |
"last_local_address":"10.211.55.3:52450", | |
"last_remote_address":"10.112.180.101:11210", | |
"total_duration_us":18908, |
NewerOlder