Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for compressLog (0.2 sec)

  1. pkg/kubelet/logs/container_log_manager.go

    			return nil, fmt.Errorf("failed to remove old log %q: %v", logs[i], err)
    		}
    	}
    	logs = logs[i:]
    	return logs, nil
    }
    
    // compressLog compresses a log to log.gz with gzip.
    func (c *containerLogManager) compressLog(log string) error {
    	r, err := c.osInterface.Open(log)
    	if err != nil {
    		return fmt.Errorf("failed to open log %q: %v", log, err)
    	}
    	defer r.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. pkg/kubelet/logs/container_log_manager_test.go

    	_, err = testFile.Write([]byte(testContent))
    	require.NoError(t, err)
    	testFile.Close()
    
    	testLog := testFile.Name()
    	c := &containerLogManager{osInterface: container.RealOS{}}
    	require.NoError(t, c.compressLog(testLog))
    	_, err = os.Stat(testLog + compressSuffix)
    	assert.NoError(t, err, "log should be compressed")
    	_, err = os.Stat(testLog + tmpSuffix)
    	assert.Error(t, err, "temporary log should be renamed")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/compress/flate/deflate.go

    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).store
    	case level == HuffmanOnly:
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).storeHuff
    	case level == BestSpeed:
    		d.compressionLevel = levels[level]
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).encSpeed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/compress/zlib/writer.go

    	// The first four bits is the CINFO (compression info), which is 7 for the default deflate window size.
    	// The next four bits is the CM (compression method), which is 8 for deflate.
    	z.scratch[0] = 0x78
    	// The next two bits is the FLEVEL (compression level). The four values are:
    	// 0=fastest, 1=fast, 2=default, 3=best.
    	// The next bit, FDICT, is set if a dictionary is given.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. docs/site-replication/run-ssec-object-replication-with-compression.sh

    touch /tmp/data/defpartsize
    shred -s 500M /tmp/data/defpartsize
    touch /tmp/data/mpartobj.txt
    shred -s 500M /tmp/data/mpartobj.txt
    echo "done"
    
    # Enable compression for site minio1
    ./mc admin config set minio1 compression enable=on extensions=".txt" --insecure
    ./mc admin config set minio1 compression allow_encryption=off --insecure
    
    # Create bucket in source cluster
    echo "Create bucket in source MinIO instance"
    ./mc mb minio1/test-bucket --insecure
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Tar.java

            return compression;
        }
    
        /**
         * Configures the compressor based on passed in compression.
         *
         * @param compression The compression. Should not be null.
         */
        public void setCompression(Compression compression) {
            this.compression = compression;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 24 23:13:41 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. src/compress/gzip/gzip.go

    		return nil, fmt.Errorf("gzip: invalid compression level: %d", level)
    	}
    	z := new(Writer)
    	z.init(w, level)
    	return z, nil
    }
    
    func (z *Writer) init(w io.Writer, level int) {
    	compressor := z.compressor
    	if compressor != nil {
    		compressor.Reset(w)
    	}
    	*z = Writer{
    		Header: Header{
    			OS: 255, // unknown
    		},
    		w:          w,
    		level:      level,
    		compressor: compressor,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/TarCopyActionSpec.groovy

    import org.gradle.api.internal.file.DefaultFilePermissions
    import org.gradle.api.internal.file.archive.compression.ArchiveOutputStreamFactory
    import org.gradle.api.internal.file.archive.compression.Bzip2Archiver
    import org.gradle.api.internal.file.archive.compression.GzipArchiver
    import org.gradle.api.internal.file.archive.compression.SimpleCompressor
    import org.gradle.api.internal.file.copy.CopyActionProcessingStream
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. src/archive/zip/register.go

    func RegisterCompressor(method uint16, comp Compressor) {
    	if _, dup := compressors.LoadOrStore(method, comp); dup {
    		panic("compressor already registered")
    	}
    }
    
    func compressor(method uint16) Compressor {
    	ci, ok := compressors.Load(method)
    	if !ok {
    		return nil
    	}
    	return ci.(Compressor)
    }
    
    func decompressor(method uint16) Decompressor {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. tools/packaging/common/envoy_bootstrap.json

                            }
                          }
                          {{- else if eq .stats_compression "brotli"}}
                          "compressor_library": {
                            "name": "text_optimized",
                            "typed_config": {
                              "@type": "type.googleapis.com/envoy.extensions.compression.brotli.compressor.v3.Brotli"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 22.6K bytes
    - Viewed (0)
Back to top