Packages

object RocksDBMemoryManager extends Logging with UnmanagedMemoryConsumer

Singleton responsible for managing cache and write buffer manager associated with all RocksDB state store instances running on a single executor if boundedMemoryUsage is enabled for RocksDB. If boundedMemoryUsage is disabled, a new cache object is returned. This also implements UnmanagedMemoryConsumer to report RocksDB memory usage to Spark's UnifiedMemoryManager, allowing Spark to account for RocksDB memory when making memory allocation decisions.

Linear Supertypes
UnmanagedMemoryConsumer, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RocksDBMemoryManager
  2. UnmanagedMemoryConsumer
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def getInstanceMemoryUsage(uniqueId: String, totalMemoryUsage: Long): Long

    Get the memory usage for a specific instance, accounting for bounded memory sharing.

    Get the memory usage for a specific instance, accounting for bounded memory sharing.

    uniqueId

    The instance's unique identifier

    totalMemoryUsage

    The total memory usage of this instance

    returns

    The adjusted memory usage accounting for sharing in bounded memory mode

  11. def getInstancePinnedBlocksMemUsage(uniqueId: String, totalPinnedUsage: Long): Long

    Get the pinned blocks memory usage for a specific instance, accounting for bounded memory sharing.

    Get the pinned blocks memory usage for a specific instance, accounting for bounded memory sharing.

    uniqueId

    The instance's unique identifier

    totalPinnedUsage

    The total pinned usage from the cache

    returns

    The adjusted pinned blocks memory usage accounting for sharing in bounded memory mode

  12. def getMemBytesUsed: Long
    Definition Classes
    RocksDBMemoryManager → UnmanagedMemoryConsumer
  13. def getNumRocksDBInstances(boundedMemory: Boolean): Long
  14. def getOrCreateRocksDBMemoryManagerAndCache(conf: RocksDBConf): (WriteBufferManager, Cache)
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  17. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  20. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  21. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def memoryMode: MemoryMode
    Definition Classes
    RocksDBMemoryManager → UnmanagedMemoryConsumer
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  47. def resetWriteBufferManagerAndCache: Unit

    Used only for unit testing

  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def unmanagedMemoryConsumerId: UnmanagedMemoryConsumerId
    Definition Classes
    RocksDBMemoryManager → UnmanagedMemoryConsumer
  51. def unregisterInstance(uniqueId: String): Unit

    Unregister a RocksDB instance.

    Unregister a RocksDB instance.

    uniqueId

    The instance's unique identifier

  52. def updateMemoryUsage(uniqueId: String, memoryUsage: Long, isBoundedMemory: Boolean): Unit

    Register/update a RocksDB instance with its memory usage.

    Register/update a RocksDB instance with its memory usage.

    uniqueId

    The instance's unique identifier

    memoryUsage

    The current memory usage in bytes

    isBoundedMemory

    Whether this instance uses bounded memory mode

  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from UnmanagedMemoryConsumer

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped