Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for Briand (0.17 sec)

  1. internal/dsync/locked_rand.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"math/rand"
    	"sync"
    )
    
    // lockedRandSource provides protected rand source, implements rand.Source interface.
    type lockedRandSource struct {
    	lk  sync.Mutex
    	src rand.Source
    }
    
    // Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *lockedRandSource) Int63() (n int64) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Oct 18 15:39:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  2. internal/dsync/utils.go

    package dsync
    
    import (
    	"math/rand"
    	"time"
    )
    
    func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(r *rand.Rand, attempt uint) time.Duration {
    		sleep := min
    		sleep += unit * time.Duration(attempt)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat May 13 15:42:21 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  3. cmd/erasure-common.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"io"
    	"math/rand"
    	"sync"
    	"time"
    
    	"github.com/minio/pkg/v2/sync/errgroup"
    )
    
    func (er erasureObjects) getOnlineDisks() (newDisks []StorageAPI) {
    	disks := er.getDisks()
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	for _, i := range r.Perm(len(disks)) {
    		i := i
    		wg.Add(1)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/license-update.go

    import (
    	"context"
    	"fmt"
    	"math/rand"
    	"time"
    
    	"github.com/tidwall/gjson"
    )
    
    const (
    	licUpdateCycle = 24 * time.Hour * 30
    	licRenewPath   = "/api/cluster/renew-license"
    )
    
    // initlicenseUpdateJob start the periodic license update job in the background.
    func initLicenseUpdateJob(ctx context.Context, objAPI ObjectLayer) {
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. cmd/bootstrap-peer-server.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"math/rand"
    	"reflect"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/grid"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/env"
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. cmd/erasure-heal_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/rand"
    	"io"
    	"os"
    	"testing"
    )
    
    var erasureHealTests = []struct {
    	dataBlocks, disks int
    
    	// number of offline disks is also number of staleDisks for
    	// erasure reconstruction in this test
    	offDisks int
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  7. internal/http/server.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"context"
    	"crypto/tls"
    	"errors"
    	"log"
    	"math/rand"
    	"net"
    	"net/http"
    	"os"
    	"runtime/pprof"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    )
    
    var (
    	// GlobalMinIOVersion - is sent in the header to all http targets
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/md5"
    	crand "crypto/rand"
    	"errors"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"testing"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio/internal/config/storageclass"
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    	// Save rebalance.bin periodically.
    	go func() {
    		// Update rebalance.bin periodically once every 5-10s, chosen randomly
    		// to avoid multiple pool leaders herding to update around the same
    		// time.
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		randSleepFor := func() time.Duration {
    			return 5*time.Second + time.Duration(float64(5*time.Second)*r.Float64())
    		}
    
    		timer := time.NewTimer(randSleepFor())
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    		if skipIfSuccessBefore <= 0 {
    			skipIfSuccessBefore = globalDriveConfig.GetMaxTimeout()
    		}
    	}
    
    	t := time.NewTicker(checkEvery)
    	defer t.Stop()
    	fn := mustGetUUID()
    
    	rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    	monitor := func() bool {
    		if contextCanceled(ctx) {
    			return false
    		}
    
    		if p.health.status.Load() != diskHealthOK {
    			return true
    		}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 32.7K bytes
    - Viewed (0)
Back to top